diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-10 21:13:41 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-10 21:13:41 +0000 |
commit | 50c21744cac9842b75bfafd776b3dc4c38370b03 (patch) | |
tree | e49e1c35ebcb7a4c8acbea9a526b74a9823b6d0c /IkiWiki/CGI.pm | |
parent | dfcd4c299a2a36cacb1de29c67559ac3869e90c8 (diff) | |
download | ikiwiki-50c21744cac9842b75bfafd776b3dc4c38370b03.tar ikiwiki-50c21744cac9842b75bfafd776b3dc4c38370b03.tar.gz |
* Display CGI processing errors if present.
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r-- | IkiWiki/CGI.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 671f0b924..53e151dc2 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -534,7 +534,13 @@ sub cgi () { #{{{ my $do=$q->param('do'); if (! defined $do || ! length $do) { - error("\"do\" parameter missing"); + my $error = $q->cgi_error; + if ($error) { + error("Request not processed: $error"); + } + else { + error("\"do\" parameter missing"); + } } # Things that do not need a session. |