Skip to content

Commit

Permalink
Add statusCode and data to OAuth1Binding call response error
Browse files Browse the repository at this point in the history
  • Loading branch information
timhaines authored and avital committed Dec 27, 2012
1 parent b5ae25a commit d629426
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/accounts-oauth1-helper/oauth1_binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ OAuth1Binding.prototype._call = function(method, url, headers, params) {

if (response.error) {
Meteor._debug('Error sending OAuth1 HTTP call', response.content, method, url, params, authString);
if (response.statusCode) response.error.statusCode = response.statusCode;
if (response.data) response.error.data = response.data;
throw response.error;
}

Expand Down

0 comments on commit d629426

Please sign in to comment.