fix(hydrateUtxos): Stringifying bch-api object when passing error

This commit is contained in:
Chris Troutner
2021-03-02 07:46:51 -08:00
parent 0a4fee5716
commit e96da1615b
+1 -1
View File
@@ -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
}