"render=s" => \$config{render},
"wrappers!" => \$config{wrappers},
"usedirs!" => \$config{usedirs},
+ "prefix-directives!" => \$config{prefix_directives},
"getctime" => \$config{getctime},
"numbacklinks=i" => \$config{numbacklinks},
"rcs=s" => \$config{rcs},
gen_wrapper();
}
elsif ($config{cgi}) {
- loadindex();
require IkiWiki::CGI;
- cgi();
+ eval {cgi()};
+ if ($@) {
+ cgierror($@);
+ }
}
elsif ($config{render}) {
require IkiWiki::Render;