Skip to content

Commit

Permalink
Return non-zero error code on tryStart failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kpdecker committed Feb 27, 2011
1 parent 11ffce8 commit b29a258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/forever
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function tryStart (callback) {
forever.stat(fullLog, fullScript, function (err) {
if (err) {
winston.error('Cannot start forever: ' + err.message);
process.exit(0);
process.exit(-1);
}

callback();
Expand Down

0 comments on commit b29a258

Please sign in to comment.