projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fixed error reporting for acl exceptions
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst.pm
diff --git
a/lib/Catalyst.pm
b/lib/Catalyst.pm
index
cb09a24
..
82896f0
100644
(file)
--- 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