Skip to content

Commit

Permalink
Merge pull request #702 from hughescr/master
Browse files Browse the repository at this point in the history
Fix "error: Forever detected script exited with code: null"
  • Loading branch information
indexzero committed Jun 27, 2015
2 parents 0fde3fa + 36fbaf1 commit 37229d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ forever.logEvents = function (monitor) {
});

monitor.on('exit:code', function (code, signal) {
forever.out.error(!isNaN(code)
forever.out.error((code !== null && code !== undefined)
? 'Forever detected script exited with code: ' + code
: 'Forever detected script was killed by signal: ' + signal);
});
Expand Down

0 comments on commit 37229d0

Please sign in to comment.