]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - ikiwiki.in
Merge branch 'master' into pedigree
[git.ikiwiki.info.git] / ikiwiki.in
index e0a59182422ae0d2aaa1b69d15fa3463f144d9c8..3bb881c4320f246b1edd4f9af80014149036d9e4 100755 (executable)
@@ -123,7 +123,10 @@ sub main () { #{{{
        }
        elsif ($config{cgi}) {
                require IkiWiki::CGI;
        }
        elsif ($config{cgi}) {
                require IkiWiki::CGI;
-               cgi();
+               eval {cgi()};
+               if ($@) {
+                       cgierror($@);
+               }
        }
        elsif ($config{render}) {
                require IkiWiki::Render;
        }
        elsif ($config{render}) {
                require IkiWiki::Render;