projects
/
catagits/catbook-code.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
28d1f68
)
improve debugging in Root controller
Matt S Trout [Sat, 7 Mar 2009 16:27:39 +0000 (11:27 -0500)]
lib/LolCatalyst/Lite/Controller/Root.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/LolCatalyst/Lite/Controller/Root.pm
b/lib/LolCatalyst/Lite/Controller/Root.pm
index
252b1bc
..
4ee16f6
100644
(file)
--- a/
lib/LolCatalyst/Lite/Controller/Root.pm
+++ b/
lib/LolCatalyst/Lite/Controller/Root.pm
@@
-38,6
+38,8
@@
sub end : ActionClass('RenderView') {
my ($self, $c) = @_;
my $errors = scalar @{$c->error};
if ($errors) {
+ $c->log->error("Errors in ${\$c->action}:");
+ $c->log->error($_) for @{$c->error};
$c->res->status(500);
$c->res->body('internal server error');
$c->clear_errors;