]> sipb.mit.edu Git - ikiwiki.git/blob - doc/patchqueue/better_error_in_srcfile.mdwn
07cfd5ec04a347f6936be0fbda42ba8e045ea3d5
[ikiwiki.git] / doc / patchqueue / better_error_in_srcfile.mdwn
1 Just a one-liner patch to make srcfile more descriptive when it fails. --Ethan
2
3 <pre>
4 Index: IkiWiki.pm
5 ===================================================================
6 --- IkiWiki.pm  (revision 3194)
7 +++ IkiWiki.pm  (working copy)
8 @@ -247,7 +247,7 @@
9
10         return "$config{srcdir}/$file" if -e "$config{srcdir}/$file";
11         return "$config{underlaydir}/$file" if -e "$config{underlaydir}/$file";
12 -       error("internal error: $file cannot be found");
13 +       error("internal error: $file cannot be found in $config{srcdir} or $config{underlaydir}");
14  } #}}}
15
16  sub readfile ($;$$) { #{{{
17 </pre>