switched error text to prefer whatever is in info.text field even in case of oauth error

fork
Sagar Mehta 11 years ago
parent a3a1d158c5
commit 57a80b854c

@ -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;

Loading…
Cancel
Save