Skip to content
Browse files

give context for this error to help with head scratching

  • Loading branch information...
1 parent 3869ee3 commit 68b554e6d38c8109f817fc32b3f06baa49a9f9b3 @trentm committed Nov 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/bunyan
View
3 bin/bunyan
@@ -1110,7 +1110,8 @@ function main(argv) {
return;
}
if (opts.pid && opts.args.length > 0) {
- warn("bunyan: error: can't use both '-p PID' and file args");
+ warn("bunyan: error: can't use both '-p PID' (%s) and file (%s) args",
+ opts.pid, opts.args.join(' '));
return drainStdoutAndExit(1);
}
var stylize = (opts.color ? stylizeWithColor : stylizeWithoutColor);

0 comments on commit 68b554e

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