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

Commit

Permalink
make sure we output the binance error, fix #2037
Browse files Browse the repository at this point in the history
  • Loading branch information
askmike committed Apr 14, 2018
1 parent 8e2760a commit a639317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exchanges/binance.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Trader.prototype.processError = function(funcName, error) {

Trader.prototype.handleResponse = function(funcName, callback) {
return (error, body) => {
if (body && !_.isEmpty(body.code)) {
if (body && body.code) {
error = new Error(`Error ${body.code}: ${body.msg}`);
}

Expand Down

0 comments on commit a639317

Please sign in to comment.