Tidy error, remove debug, tidy warn.
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Controller.pm
index e79d79f..a080f84 100644 (file)
@@ -181,6 +181,9 @@ sub register_actions {
     #this is still not correct for some reason.
     my $namespace = $self->action_namespace($c);
     my $meta = find_meta($self);
+    confess("Metaclass for " . ref($meta) ." for " . $meta->name 
+        . " cannot support register_actions.")
+        unless $meta->can('get_all_methods_with_attributes');
     my @methods = $meta->get_all_methods_with_attributes;
 
     foreach my $method (@methods) {