give context for this error to help with head scratching

This commit is contained in:
Trent Mick 2012-11-04 22:17:20 -08:00
parent 3869ee308c
commit 68b554e6d3
1 changed files with 2 additions and 1 deletions

View File

@ -1110,7 +1110,8 @@ function main(argv) {
return; return;
} }
if (opts.pid && opts.args.length > 0) { 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); return drainStdoutAndExit(1);
} }
var stylize = (opts.color ? stylizeWithColor : stylizeWithoutColor); var stylize = (opts.color ? stylizeWithColor : stylizeWithoutColor);