Skip to content

Commit

Permalink
fix error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
you21979 committed Nov 25, 2016
1 parent 37a4714 commit 3edaa8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/private_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ TradeApi.prototype.query = function(method, mustparams, options){
then(function(v){
if(v.error){
var error_code = v.error.replace(/ /g, '_').replace('.', '').toUpperCase();
throw new HttpApiError(v.message, "API", error_code, v);
throw new HttpApiError(v.error, "API", error_code, v);
}else{
return v
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Yuki Akiyama <you2197901 [at] gmail.com>",
"name": "@you21979/poloniex.com",
"version": "0.0.7",
"version": "0.0.8",
"private": false,
"dependencies": {
"autobahn" : "0.10.x",
Expand Down

0 comments on commit 3edaa8e

Please sign in to comment.