Skip to content

Commit

Permalink
code 0 should be treated as a Number too.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjatse authored and indexzero committed Nov 4, 2014
1 parent 663e49a commit 8e4f1fb
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 @@ -892,7 +892,7 @@ forever.logEvents = function (monitor) {
});

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

1 comment on commit 8e4f1fb

@thomas-riccardi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prints Forever detected script exited with code: null when code === null, this is a regression. See #645.

Please sign in to comment.