X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoo%2F_Utils.pm;h=5f5e51f38c530a07c6f13c834b3f48f78a5cc83b;hb=faa9ce11cefee1e6f7800ec1dbe561717c162161;hp=2ee545c392250e93324a608f01d7dfa59b775dc5;hpb=49d332df39656855cadaa6d4775f6df1a238b7c9;p=gitmo%2FRole-Tiny.git diff --git a/lib/Moo/_Utils.pm b/lib/Moo/_Utils.pm index 2ee545c..5f5e51f 100644 --- a/lib/Moo/_Utils.pm +++ b/lib/Moo/_Utils.pm @@ -40,7 +40,7 @@ sub _load_module { # can't just ->can('can') because a sub-package Foo::Bar::Baz # creates a 'Baz::' key in Foo::Bar's symbol table return 1 if grep !/::$/, keys %{_getstash($_[0])||{}}; - { local $@; require "${proto}.pm"; } + { require "${proto}.pm"; } return 1; }