X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst.pm;h=2427601c595f371f6510f70453f90d401d848e6c;hb=66f6e959d5d07f987228c229280bccfd14223fc4;hp=702bd8a50e256b277420e4c5fe355e2a74f27925;hpb=af3ff00e4738b2e87d189e79fd12739315711ab3;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 702bd8a..2427601 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -862,8 +862,6 @@ sub execute { chomp $error; $error = qq/Caught exception "$error"/; } - - $c->log->error($error); $c->error($error); $c->state(0); } @@ -880,6 +878,10 @@ Finalize request. sub finalize { my $c = shift; + for my $error ( @{ $c->error } ) { + $c->log->error($error); + } + $c->finalize_uploads; # Error @@ -1346,7 +1348,7 @@ sub setup_components { my $callback = sub { my ( $component, $context ) = @_; - unless ( $component->isa('Catalyst::Base') ) { + unless ( $component->isa('Catalyst::Component') ) { return $component; } @@ -1813,6 +1815,8 @@ Robert Sedlacek Sam Vilain +Sascha Kiefer + Tatsuhiko Miyagawa Ulf Edvinsson