X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/122f6df3259e8ca1dd96554d08cebce4b5c55acc..8d9ec24232ede981face0c3eafbce71b74c4725a:/ikiwiki.in 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;