From: Richard Hartmann Date: Sun, 4 Dec 2011 15:05:06 +0000 (+0100) Subject: Improve error reporting X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/95f38e8b44cbfca1f23a640d8153c95e6650e32d?ds=sidebyside Improve error reporting Print the offending line if there's a syntax error in a config file. --- 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"; } }