Skip to content

Commit

Permalink
Better error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
madleech committed Oct 17, 2016
1 parent e6e234d commit a28e4b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/flick-api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/flick-api.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class FlickAPI extends EventEmitter
}
.end (err, resp) =>
if err
@emit 'error', "Error", err
@emit 'error', err.response?.text || "Error", err
else if resp.body.id_token
@token = resp.body.id_token
@emit 'authenticated'
Expand Down

0 comments on commit a28e4b3

Please sign in to comment.