diff --git a/nodes/core/social/27-twitter.js b/nodes/core/social/27-twitter.js index f8c493812..120f70e81 100644 --- a/nodes/core/social/27-twitter.js +++ b/nodes/core/social/27-twitter.js @@ -283,10 +283,12 @@ RED.app.get('/twitter/:id/auth', function(req, res){ oauth_callback: req.query.callback },function(error, oauth_token, oauth_token_secret, results){ if (error) { - console.log(error); - res.send("yeah no. didn't work.") - } - else { + var resp = '

Oh no!

'+ + '

Something went wrong with the authentication process. The following error was returned:

'+ + '

'+error.statusCode+': '+error.data+'

'+ + '

One known cause of this type of failure is if the clock is wrong on system running Node-RED.'; + res.send(resp) + } else { credentials.oauth_token = oauth_token; credentials.oauth_token_secret = oauth_token_secret; res.redirect('https://twitter.com/oauth/authorize?oauth_token='+oauth_token)