revert local $\@ around require to avoid eating errors
[gitmo/Moo.git] / lib / Method / Generate / Constructor.pm
index c11cbd2..95cbe88 100644 (file)
@@ -55,7 +55,7 @@ sub generate_method {
   $body .= '    my $new = '.$self->construction_string.";\n";
   $body .= $self->_assign_new($spec);
   if ($into->can('BUILD')) {
-    { local $@; require Method::Generate::BuildAll; }
+    require Method::Generate::BuildAll;
     $body .= Method::Generate::BuildAll->new->buildall_body_for(
       $into, '$new', '$args'
     );