web commit by http://ethan.betacantrips.com/: helpful to me, anyhow
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 8 Apr 2007 04:17:39 +0000 (04:17 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sun, 8 Apr 2007 04:17:39 +0000 (04:17 +0000)
doc/patchqueue/better_error_in_srcfile.mdwn [new file with mode: 0644]

diff --git a/doc/patchqueue/better_error_in_srcfile.mdwn b/doc/patchqueue/better_error_in_srcfile.mdwn
new file mode 100644 (file)
index 0000000..07cfd5e
--- /dev/null
@@ -0,0 +1,17 @@
+Just a one-liner patch to make srcfile more descriptive when it fails. --Ethan
+
+<pre>
+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 ($;$$) { #{{{
+</pre>
\ No newline at end of file