diff --git a/lib/reload.js b/lib/reload.js index ebf0a62..87265a1 100644 --- a/lib/reload.js +++ b/lib/reload.js @@ -38,7 +38,9 @@ module.exports = function reload (httpServer, expressApp, verboseLogging) { }, 'sendMessage': function (command) { if (conn) { - conn.send(command) + conn.send(command, function (error) { + console.error(error) + }) } else { if (verboseLogging) { console.log('Cannot send "' + command + '" to client: still not connected')