From 710a9b37825712cf4377e3709dd03a2e3410a016 Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 8 Apr 2007 04:17:39 +0000 Subject: web commit by http://ethan.betacantrips.com/: helpful to me, anyhow --- doc/patchqueue/better_error_in_srcfile.mdwn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 doc/patchqueue/better_error_in_srcfile.mdwn (limited to 'doc') diff --git a/doc/patchqueue/better_error_in_srcfile.mdwn b/doc/patchqueue/better_error_in_srcfile.mdwn new file mode 100644 index 000000000..07cfd5ec0 --- /dev/null +++ b/doc/patchqueue/better_error_in_srcfile.mdwn @@ -0,0 +1,17 @@ +Just a one-liner patch to make srcfile more descriptive when it fails. --Ethan + +
+Index: IkiWiki.pm
+===================================================================
+--- IkiWiki.pm  (revision 3194)
++++ IkiWiki.pm  (working copy)
+@@ -247,7 +247,7 @@
+
+        return "$config{srcdir}/$file" if -e "$config{srcdir}/$file";
+        return "$config{underlaydir}/$file" if -e "$config{underlaydir}/$file";
+-       error("internal error: $file cannot be found");
++       error("internal error: $file cannot be found in $config{srcdir} or $config{underlaydir}");
+ } #}}}
+
+ sub readfile ($;$$) { #{{{
+
\ No newline at end of file -- cgit v1.2.3