X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/80915c830a03cf67c6770ef5e62d5178824b101e..0a176059bb55acfc201c7ca4705da849831adb8e:/ikiwiki.in?ds=inline diff --git a/ikiwiki.in b/ikiwiki.in index 1ce7e1688..3bb881c43 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -29,6 +29,7 @@ sub getconfig () { #{{{ "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}, @@ -122,7 +123,10 @@ sub main () { #{{{ } elsif ($config{cgi}) { require IkiWiki::CGI; - cgi(); + eval {cgi()}; + if ($@) { + cgierror($@); + } } elsif ($config{render}) { require IkiWiki::Render;