diff --git a/packages/accounts-oauth1-helper/oauth1_binding.js b/packages/accounts-oauth1-helper/oauth1_binding.js index 011dd3708b9..e119a373dae 100644 --- a/packages/accounts-oauth1-helper/oauth1_binding.js +++ b/packages/accounts-oauth1-helper/oauth1_binding.js @@ -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; }