desmondmorris/node-twitter — pull request #27 by Qix- (2014-05-19 22:50:01+00:00)
Title: Add source parameter to error object

Upon errors, sometimes the original message doesn't parse because it's a plain-text response from Twitter.

This is useless to us in that scenario since there isn't really any way of seeing what that error is other than a random syntax error (see #26).

This PR tacks on the original *not-JSON* response as `source` to the error, without breaking anything.