From: Florian Ragwitz Date: Thu, 14 Apr 2011 11:06:55 +0000 (+0200) Subject: Make this error message more readable X-Git-Tag: 5.80033~28 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=e87273a4374fb0d8da5479a826f9c847a50546cf Make this error message more readable --- diff --git a/lib/Catalyst/Controller.pm b/lib/Catalyst/Controller.pm index 99c5f29..47ec9f0 100644 --- a/lib/Catalyst/Controller.pm +++ b/lib/Catalyst/Controller.pm @@ -194,10 +194,8 @@ sub get_action_methods { @methods, map { $meta->find_method_by_name($_) - || confess( 'Action "' - . $_ - . '" is not available from controller ' - . ( ref $self ) ) + || confess( sprintf 'Action "%s" is not available from controller %s', + $_, ref $self ) } keys %{ $self->_controller_actions } ) if ( ref $self ); return uniq @methods;