diff --git a/lib/reload.js b/lib/reload.js index 87265a1..1c72646 100644 --- a/lib/reload.js +++ b/lib/reload.js @@ -39,7 +39,9 @@ module.exports = function reload (httpServer, expressApp, verboseLogging) { 'sendMessage': function (command) { if (conn) { conn.send(command, function (error) { - console.error(error) + if (error) { + console.error(error) + } }) } else { if (verboseLogging) {