From 68b554e6d38c8109f817fc32b3f06baa49a9f9b3 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Sun, 4 Nov 2012 22:17:20 -0800 Subject: [PATCH] give context for this error to help with head scratching --- bin/bunyan | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/bunyan b/bin/bunyan index 2b192ea..16ab571 100755 --- a/bin/bunyan +++ b/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);