don't die on unknown / unavailable schemes
Jonathan Rockway [Sun, 12 Apr 2009 04:58:45 +0000 (23:58 -0500)]
lib/MooseX/Runnable/Invocation.pm

index 77e3b0b..f902511 100644 (file)
@@ -66,9 +66,11 @@ sub apply_scheme {
         $self->_convert_role_to_scheme($_)
     } $class->calculate_all_roles;
 
-    foreach my $scheme (@schemes) {
-        $scheme->apply($self);
-    }
+    eval {
+        foreach my $scheme (@schemes) {
+            $scheme->apply($self);
+        }
+    };
 }