Skip to content

Commit

Permalink
added handling for unauthorized_scope → PermissionDenied for cobinhood
Browse files Browse the repository at this point in the history
…fix #3005
  • Loading branch information
kroitor committed Jun 5, 2018
1 parent 17d2a56 commit 93b071a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/cobinhood.js
Expand Up @@ -3,7 +3,7 @@
// ---------------------------------------------------------------------------

const Exchange = require ('./base/Exchange');
const { ExchangeError, InsufficientFunds, InvalidNonce } = require ('./base/errors');
const { ExchangeError, InsufficientFunds, InvalidNonce, PermissionDenied } = require ('./base/errors');

// ---------------------------------------------------------------------------

Expand Down Expand Up @@ -129,6 +129,7 @@ module.exports = class cobinhood extends Exchange {
'exceptions': {
'insufficient_balance': InsufficientFunds,
'invalid_nonce': InvalidNonce,
'unauthorized_scope': PermissionDenied,
},
});
}
Expand Down

0 comments on commit 93b071a

Please sign in to comment.