And properly fix Unknown error
Tomas Doran [Fri, 15 May 2009 12:53:54 +0000 (12:53 +0000)]
lib/Catalyst.pm

index c131008..5b1ae67 100644 (file)
@@ -1101,6 +1101,7 @@ EOF
     # modifiers work correctly in MyApp (as you have to call setup _before_
     # applying modifiers).
     B::Hooks::EndOfScope::on_scope_end {
+        return if $@;
         my $meta = Class::MOP::get_metaclass_by_name($class);
         if ( $meta->is_immutable && ! { $meta->immutable_options }->{inline_constructor} ) {
             warn "You made your application class ($class) immutable, "