From e96da1615b642149436a013eaefb7be9c687fe51 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 2 Mar 2021 07:46:51 -0800 Subject: [PATCH] fix(hydrateUtxos): Stringifying bch-api object when passing error --- src/slp/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slp/utils.js b/src/slp/utils.js index 8b1bdeb..fd03091 100644 --- a/src/slp/utils.js +++ b/src/slp/utils.js @@ -1833,7 +1833,7 @@ class Utils { return response.data } catch (error) { if (error.response && error.response.data) { - throw new Error(error.response.data) + throw new Error(JSON.stringify(error.response.data, null, 2)) } throw error }