Skip to content

Commit

Permalink
Adding rest api client error param on rejection.
Browse files Browse the repository at this point in the history
  • Loading branch information
henvic committed Nov 4, 2015
1 parent 4a8e6c0 commit 79b0ab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/rest-api-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ class RestApiClient {

if (response.statusCode < 200 || response.statusCode >= 300) {
reject({
error: response.statusCode + ' ' + http.STATUS_CODES[response.statusCode],
code: response.statusCode,
msg: http.STATUS_CODES[response.statusCode],
response
Expand Down

0 comments on commit 79b0ab1

Please sign in to comment.