]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Improve error reporting
authorRichard Hartmann <richih.mailinglist@gmail.com>
Sun, 4 Dec 2011 15:05:06 +0000 (16:05 +0100)
committerJoey Hess <joey@kitenet.net>
Sun, 4 Dec 2011 15:35:00 +0000 (11:35 -0400)
Print the offending line if there's a syntax error in a config file.

mr

diff --git a/mr b/mr
index 6e27cd5ee0e59b16d67acb21b788cef479b9dac2..9a81f61a654070fa2b3318c417af5dada3b8bdf6 100755 (executable)
--- a/mr
+++ b/mr
@@ -1292,7 +1292,7 @@ sub loadconfig {
                        }
                }
                else {
                        }
                }
                else {
-                       die "$f line $line: parse error\n";
+                       die "$f line $line: '$_': parse error\n";
                }
        }
 
                }
        }