X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=87fd4af386b664a6bad5762c4ae0dcddec036cd4;hb=83a8fcacf68e1063b5382835f2f9beb93f4bfe87;hp=9530a040a6e3bf77e1c4e2afff3298e498cc97df;hpb=af2ab6a0a923fc8f2472efaf494fc5287db92226;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 9530a04..87fd4af 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -26,7 +26,6 @@ require Catalyst::Test; require Catalyst::Engine::HTTP; require Catalyst::Engine::CGI; -require Catalyst::Engine::FastCGI; require Catalyst::Controller; require Catalyst::Model; @@ -57,7 +56,7 @@ our $DETACH = "catalyst_detach\n"; require Module::Pluggable::Fast; # Helper script generation -our $CATALYST_SCRIPT_GEN = 14; +our $CATALYST_SCRIPT_GEN = 18; __PACKAGE__->mk_classdata($_) for qw/components arguments dispatcher engine log dispatcher_class @@ -290,7 +289,9 @@ sub detach { my $c = shift; $c->dispatcher->detach( $c, @_ ) } =item $c->error($arrayref) -Returns an arrayref containing error messages. +Returns an arrayref containing error messages. If Catalyst encounters an +error while processing a request, it stores the error in $c->error. This +method should not be used to store non-fatal error messages. my @error = @{ $c->error }; @@ -298,7 +299,8 @@ Add a new error. $c->error('Something bad happened'); -Clear errors. +Clear errors. You probably don't want to clear the errors unless you are +implementing a custom error screen. $c->error(0);