Skip to content
Browse files

[fix] Return when no index or script is passed to `forever logs`. Fixes

  • Loading branch information...
1 parent 8176f9f commit 9131af71e2862d493656427a40a5a738047e7fd2 @indexzero committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/forever/cli.js
View
6 lib/forever/cli.js
@@ -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
//

0 comments on commit 9131af7

Please sign in to comment.
Something went wrong with that request. Please try again.