Skip to content

Commit

Permalink
fix(integration/bitgrail): reject promise on 401 from bitgrail
Browse files Browse the repository at this point in the history
  • Loading branch information
benmarten committed Jan 1, 2018
1 parent 0e3d6c0 commit 9c2b16b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/model/integrations/BitgrailWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export default class BitgrailWallet {
}
return request(options)
.then(data => {
if (!data.success) {
reject('Bitgrail Error: ' + JSON.stringify(data.response))
return
}
let result = []
let balances = data.response
for (let symbol in balances) {
Expand Down

0 comments on commit 9c2b16b

Please sign in to comment.