projects
/
catagits/catbook-code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
improve debugging in Root controller
[catagits/catbook-code.git]
/
lib
/
LolCatalyst
/
Lite
/
Controller
/
Root.pm
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;