mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
Merge pull request #129 from Permissionless-Software-Foundation/ct-unstable
fix(hydrateUtxos): Stringifying bch-api object when passing error
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user