Explorar o código

add getTransactions error log

DevYK %!s(int64=3) %!d(string=hai) anos
pai
achega
e5c1ed39e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      model/moralis_sdk.js

+ 1 - 1
model/moralis_sdk.js

@@ -886,7 +886,7 @@ async function getTokenTransfers(opt) {
             return toJson(SUCCEED_CODE, t_1, null);
         } catch (error) {
             logger.error("getTransactions error:", error)
-            return toJson(ERROR_CODE_001, null, error);;
+            return toJson(ERROR_CODE_001, null, error.toString());
         }
     } else if (options.type == 'transaction_hash') {//根据哈希查询
         try {