diff --git a/lib/Connection.js b/lib/Connection.js index 11ea916..35c2e55 100644 --- a/lib/Connection.js +++ b/lib/Connection.js @@ -1328,10 +1328,10 @@ Connection.prototype._resTagged = function(info) { if (info.type === 'no' || info.type === 'bad') { var errtext; - if (req.oauthError) - errtext = req.oauthError; + if (info.text) + errtext = info.text; else - errtext = info.text; + errtext = req.oauthError; err = new Error(errtext); err.type = info.type; err.textCode = info.textCode;