Make this error message more readable
Florian Ragwitz [Thu, 14 Apr 2011 11:06:55 +0000 (13:06 +0200)]
lib/Catalyst/Controller.pm

index 99c5f29..47ec9f0 100644 (file)
@@ -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;