]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/wiki_rebuild_should_throw_errors_if_the_configured_underlaydir_or_templatedir_don__39__t_exist.mdwn
Merge remote-tracking branch 'anarcat/dev/proxy-utf8-fail'
[ikiwiki.git] / doc / bugs / wiki_rebuild_should_throw_errors_if_the_configured_underlaydir_or_templatedir_don__39__t_exist.mdwn
1 I originally set up ikiwiki by using the debian package, but had some odd issues, so i figured i'd try installing from git. To do that i uninstalled the debian package and then did the Makefile dance from the git dir. In that process the original dirs configured in templatedir underlaydir in my wiki were deleted; HOWEVER when rebuilding the script just went ahead and did not even note the lack of those dirs. It would be nice if it threw errors if the dirs were configured, but non-existant.
2
3 > Hmm. This behavior was explicitly coded into ikiwiki for underlay dirs:
4 > [commit](http://source.ikiwiki.branchable.com/?p=source.git;a=commitdiff;h=cb4b99929757f970d5ae697f0d09514ad624ed46).
5 > Pity I didn't say why, but presumably there are cases 
6 > where one of the underlaydirs is expected to be missing, or where
7 > this robustness of not crashing is needed.
8
9 > The situation with missing templatedirs is more clear: When
10 > it's looking for a given template file it just tries to open it in each
11 > directory in turn, and uses the first file found; checking that a
12 > directory exists would be extra work and there's a nice error message if 
13 > a template cannot be found. --[[Joey]]
14
15 >> I'd agree with the thought behind that ... if it actually had thrown an error. However it did not. How about just checking the config variables when the template and/or config is set up? --Mithaldu