Skip to content

Commit

Permalink
Merge pull request #59 from wskn/master
Browse files Browse the repository at this point in the history
Fixed undefined error log on sendMessage
  • Loading branch information
alallier authored Jan 28, 2017
2 parents b8e2859 + 3bdef6d commit be60f35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/reload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit be60f35

Please sign in to comment.