X-Git-Url: https://git.decadent.org.uk/gitweb/?p=maypole.git;a=blobdiff_plain;f=lib%2FCGI%2FMaypole.pm;h=6448480c16241561846d83feedcd720d265f2afd;hp=df75712ac261c52c1dac43228de2d88e4dc48207;hb=a4b491683c59a0a505501187742b145eb538eb93;hpb=e3a67a74f645a5988f9b59458a320ab52ff5c708 diff --git a/lib/CGI/Maypole.pm b/lib/CGI/Maypole.pm index df75712..6448480 100644 --- a/lib/CGI/Maypole.pm +++ b/lib/CGI/Maypole.pm @@ -7,7 +7,7 @@ use CGI::Simple; use Maypole::Headers; use Maypole::Constants; -our $VERSION = '2.12'; +our $VERSION = '2.13'; __PACKAGE__->mk_accessors( qw/cgi/ ); @@ -54,10 +54,19 @@ Call this from your CGI script to start the Maypole application. =cut -sub run -{ - my $self = shift; - return $self->handler; +sub run { + my $self = shift; + my $status = $self->handler; + if ($status != OK) { + print <Maypole application error +

Maypole application error

+EOT + } + return $status; } =head1 Implementation