Skip to content

Commit

Permalink
Show -a option when user met log file exist error.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyisle committed Jan 13, 2012
1 parent 4e2ab81 commit 7064adb
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 @@ -337,7 +337,7 @@ forever.stat = function (logFile, script, callback) {

return logAppend ? callback(null) : fs.stat(logFile, function (err, stats) {
return !err
? callback(new Error('log file ' + logFile + ' exists.'))
? callback(new Error('log file ' + logFile + ' exists. Use the -a or --append option to append log.'))
: callback(null);
});
});
Expand Down

0 comments on commit 7064adb

Please sign in to comment.