X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=ikiwiki.in;h=3bb881c4320f246b1edd4f9af80014149036d9e4;hb=219e7e29a49a55a02e5ec6213a41aa82afdad5a0;hp=e0a59182422ae0d2aaa1b69d15fa3463f144d9c8;hpb=a35dd1d806f9bca82c0c04a4ff6c69956e3371a0;p=ikiwiki.git diff --git a/ikiwiki.in b/ikiwiki.in index e0a591824..3bb881c43 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -123,7 +123,10 @@ sub main () { #{{{ } elsif ($config{cgi}) { require IkiWiki::CGI; - cgi(); + eval {cgi()}; + if ($@) { + cgierror($@); + } } elsif ($config{render}) { require IkiWiki::Render;