diff options
author | Simon McVittie <smcv@debian.org> | 2017-05-14 15:06:01 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2017-05-14 15:39:21 +0100 |
commit | 60cb2ac458dc8dea3b6a72abe52dcb1cd05617a4 (patch) | |
tree | d183ea54c82b4d97e1a78fbe845e387d1dd7d5b1 /IkiWiki | |
parent | 26ded176534a56ff93c464785aa446fb2f8c3cf7 (diff) | |
download | ikiwiki-60cb2ac458dc8dea3b6a72abe52dcb1cd05617a4.tar ikiwiki-60cb2ac458dc8dea3b6a72abe52dcb1cd05617a4.tar.gz |
cgierror: When the CGI fails, print the error to stderr, not "Died"
$@ could be clobbered by the "exception handler", and in practice
it seems that it is. This can be seen on stderr of t/git-cgi.t.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index d20a75923..f1eb31d97 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -490,7 +490,8 @@ sub cgierror ($) { print "Content-type: text/html\n\n"; print cgitemplate(undef, gettext("Error"), "<p class=\"error\">".gettext("Error").": $message</p>"); - die $@; + + die $message; } 1 |