From 95f38e8b44cbfca1f23a640d8153c95e6650e32d Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Sun, 4 Dec 2011 16:05:06 +0100 Subject: [PATCH 1/1] Improve error reporting Print the offending line if there's a syntax error in a config file. --- mr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mr b/mr index 6e27cd5..9a81f61 100755 --- a/mr +++ b/mr @@ -1292,7 +1292,7 @@ sub loadconfig { } } else { - die "$f line $line: parse error\n"; + die "$f line $line: '$_': parse error\n"; } } -- 2.39.5