diff --git a/social/email/61-email.js b/social/email/61-email.js index 50a5eb06..41918cff 100644 --- a/social/email/61-email.js +++ b/social/email/61-email.js @@ -534,8 +534,8 @@ module.exports = function(RED) { }); imap.on('error', function(err) { if (err.errno !== "ECONNRESET") { - node.log(err); s = false; + node.error(err.message,err); node.status({fill:"red",shape:"ring",text:"email.status.connecterror"}); } setInputRepeatTimeout(); diff --git a/social/email/package.json b/social/email/package.json index ba161d95..e7e1afe2 100644 --- a/social/email/package.json +++ b/social/email/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-email", - "version": "1.18.0", + "version": "1.18.1", "description": "Node-RED nodes to send and receive simple emails.", "dependencies": { "imap": "^0.8.19",