Permalink
Browse files

#4 just use error.message instead of using error object

  • Loading branch information...
1 parent 9a4d8da commit d7d3ceaa7633fe21c17149c515751b13d81e7bf4 @infynyxx infynyxx committed Apr 29, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/sailthru.js
  2. +2 −2 src/sailthru.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -83,8 +83,8 @@ class SailthruRequest
json_err =
statusCode: 0,
error: 0,
- errormsg: error
- callback error, json_err
+ errormsg: error.message
+ callback error.message, json_err
req.end()
req.write url.format({query: options.query}).replace('?', ''), 'utf8' if method is 'POST'

0 comments on commit d7d3cea

Please sign in to comment.