Skip to content

Commit

Permalink
braziliex: avoid notices
Browse files Browse the repository at this point in the history
  • Loading branch information
kornrunner committed Jan 11, 2018
1 parent bdad9f6 commit 0beb9d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/braziliex.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ module.exports = class braziliex extends Exchange {
let response = await this.fetch2 (path, api, method, params, headers, body);
let success = this.safeInteger (response, 'success');
if (success == 0) {
let message = response['message'];
let message = this.safeString (response, 'message');
if (message == 'Invalid APIKey')
throw new AuthenticationError (message);
throw new ExchangeError (message);
Expand Down

0 comments on commit 0beb9d0

Please sign in to comment.