X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FDispatcher.pm;h=94dd80d97dd04064bcf91625d021526be9032465;hb=3b2ed58088aa6b714f24cb4c76484c7dda8cfe30;hp=fd99ba42099e27f2aeafb419742591d8e64837c6;hpb=d0e524d220a422d8681c52883ba9e4039632ca20;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index fd99ba4..94dd80d 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -121,7 +121,9 @@ sub forward { unless ( @{$results} ) { my $class = $command; if ( $class =~ /[^\w\:]/ ) { - $c->log->debug(qq/Couldn't forward to "$class"/) if $c->debug; + my $error = qq/Couldn't forward to "$class"/; + $c->error($error); + $c->log->debug($error) if $c->debug; return 0; } my $method = shift || 'process'; @@ -130,7 +132,9 @@ sub forward { $results = [ [ [ $class, $code ] ] ]; } else { - $c->log->debug(qq/Couldn't forward to "$class->$method"/) + my $error = qq/Couldn't forward to "$class->$method"/; + $c->error($error); + $c->log->debug($error) if $c->debug; return 0; }