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

index 252b1bc..4ee16f6 100644 (file)
@@ -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;