From 50c21744cac9842b75bfafd776b3dc4c38370b03 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 10 Jul 2006 21:13:41 +0000 Subject: * Display CGI processing errors if present. --- IkiWiki/CGI.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'IkiWiki') 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. -- cgit v1.2.3