Skip to content

Commit

Permalink
[fix] Return when no index or script is passed to forever logs. Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
indexzero committed Oct 22, 2011
1 parent 8176f9f commit 9131af7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/forever/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,12 @@ cli.clear = function (key) {
// specified then it will display log files for all running forever processes.
//
cli.logs = function (index) {
if (typeof index === 'undefined') {
forever.log.warn('Cannot show logs of unknown process');
forever.log.warn('usage: forever logs [index | script]');
return;
}

//
// Helper function for listing all log files
//
Expand Down

0 comments on commit 9131af7

Please sign in to comment.