From: Marcus Ramberg Date: Tue, 19 Apr 2005 15:39:07 +0000 (+0000) Subject: Updated: Better Dispatcher error messages. X-Git-Tag: 5.7099_04~1470 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=5d2c7203d35650cf3dc99a7b6d6e6659ebc7d559 Updated: Better Dispatcher error messages. --- diff --git a/Changes b/Changes index 38624dd..fb49ecd 100644 --- a/Changes +++ b/Changes @@ -4,6 +4,7 @@ This file documents the revision history for Perl extension Catalyst. - Fixed Test example (Torsten Seeman) - Added Plugins chapter to manual - applied doc patch from Robert Boone + - Improved Dispatcher error messages. - Refactored so we don't need to include helper from Catalyst.pm diff --git a/lib/Catalyst/Dispatcher.pm b/lib/Catalyst/Dispatcher.pm index c0daccd..ab305ec 100644 --- a/lib/Catalyst/Dispatcher.pm +++ b/lib/Catalyst/Dispatcher.pm @@ -137,7 +137,7 @@ sub forward { my $class = $command || ''; if ( $class =~ /[^\w\:]/ ) { - my $error = qq/Couldn't forward to "$class"/; + my $error = qq/"$class" is an invalid Class name/; $c->error($error); $c->log->debug($error) if $c->debug; return 0; @@ -151,7 +151,7 @@ sub forward { } else { - my $error = qq/Couldn't forward to "$class"/; + my $error = qq/Couldn't forward to "$class". Does not implement "$method"/; $c->error($error); $c->log->debug($error) if $c->debug;