projects
/
gitmo/MooseX-Runnable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
c4e3f06
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/MooseX/Runnable/Invocation.pm
b/lib/MooseX/Runnable/Invocation.pm
index
77e3b0b
..
f902511
100644
(file)
--- a/
lib/MooseX/Runnable/Invocation.pm
+++ b/
lib/MooseX/Runnable/Invocation.pm
@@
-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);
+ }
+ };
}