From: Tomas Doran Date: Wed, 12 Aug 2009 01:11:07 +0000 (+0000) Subject: Blow up rather than failing to call ->can if everything is totally screwed X-Git-Tag: 5.80008~21 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=2bf074abee817f84daec2a06822f9dcdb881843f Blow up rather than failing to call ->can if everything is totally screwed --- diff --git a/lib/Catalyst/Controller.pm b/lib/Catalyst/Controller.pm index a086eb2..3c313c7 100644 --- a/lib/Catalyst/Controller.pm +++ b/lib/Catalyst/Controller.pm @@ -179,7 +179,7 @@ around path_prefix => sub { sub get_action_methods { my $self = shift; - my $meta = find_meta($self); + my $meta = find_meta($self) || confess("No metaclass setup for $self"); confess("Metaclass " . ref($meta) . " for " . $meta->name