Compare commits

...
3 Commits
Author SHA1 Message Date
Chris Troutner 3f01fdba7c Merge pull request #129 from Permissionless-Software-Foundation/ct-unstable
fix(hydrateUtxos): Stringifying bch-api object when passing error
2021-03-02 07:49:14 -08:00
Chris Troutner 232747280e Merge branch 'master' into ct-unstable 2021-03-02 07:47:03 -08:00
Chris Troutner e96da1615b fix(hydrateUtxos): Stringifying bch-api object when passing error 2021-03-02 07:46:51 -08:00
+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
}