diff --git a/nodes/core/social/27-twitter.js b/nodes/core/social/27-twitter.js index fe3a60a4a..d287ba473 100644 --- a/nodes/core/social/27-twitter.js +++ b/nodes/core/social/27-twitter.js @@ -177,7 +177,11 @@ module.exports = function(RED) { node.log("tweet rate limit hit"); }); stream.on('error', function(tweet,rc) { - node.warn(tweet); + if (rc == 420) { + node.warn("Twitter rate limit hit"); + } else { + node.warn("Stream error:"+tweet.toString()+" ("+rc+")"); + } setTimeout(setupStream,10000); }); stream.on('destroy', function (response) {