Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 9131af71e2862d493656427a40a5a738047e7fd2 1 parent 8176f9f
@indexzero authored
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
//
Please sign in to comment.
Something went wrong with that request. Please try again.