Skip to content
This repository has been archived by the owner on Feb 16, 2020. It is now read-only.

Commit

Permalink
fixed auth check error (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Dec 22, 2013
1 parent e3a1662 commit a9a6e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/mtgox.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Trader.prototype.retry = function(method, args) {
}

Trader.prototype.checkUnauthorized = function(err) {
if(err.message === 'Request failed with 403')
if(err && err.message === 'Request failed with 403')
throw 'It appears your ' + this.name + ' API key and secret are incorrect';
}

Expand Down

0 comments on commit a9a6e2c

Please sign in to comment.