* Apply patch from Ethan to improve an error message that should never
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 14 Apr 2007 20:07:03 +0000 (20:07 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 14 Apr 2007 20:07:03 +0000 (20:07 +0000)
  happen.

IkiWiki.pm
debian/changelog
doc/patchqueue/better_error_in_srcfile.mdwn [deleted file]

index f2273e07cb8f8b4d43732622e59ba59acaac4e0f..1c310d39157d1a5fd29e37b7b1fabaec87b72391 100644 (file)
@@ -248,7 +248,7 @@ sub srcfile ($) { #{{{
 
        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 ($;$$) { #{{{
index 4afbf1b4c861beae4fbf3febbcad890fc169dfc8..5b03c788467d2e75ad3c9b0c1cd5942591c817e8 100644 (file)
@@ -27,8 +27,10 @@ ikiwiki (1.50) UNRELEASED; urgency=low
   [ Joey Hess ]
   * Add postformtext parameter to inline.
   * Internal version number and installdir substitutions were lost, fix.
+  * Apply patch from Ethan to improve an error message that should never
+    happen.
 
- -- Joey Hess <joeyh@debian.org>  Fri, 13 Apr 2007 14:40:28 -0400
+ -- Joey Hess <joeyh@debian.org>  Sat, 14 Apr 2007 16:06:01 -0400
 
 ikiwiki (1.49) unstable; urgency=low
 
diff --git a/doc/patchqueue/better_error_in_srcfile.mdwn b/doc/patchqueue/better_error_in_srcfile.mdwn
deleted file mode 100644 (file)
index 07cfd5e..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-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