Mad fix.
Tomas Doran [Wed, 6 May 2009 00:38:34 +0000 (00:38 +0000)]
lib/Catalyst.pm

index bab0bd4..a6be851 100644 (file)
@@ -1100,6 +1100,7 @@ EOF
     # modifiers work correctly in MyApp (as you have to call setup _before_
     # applying modifiers).
     Scope::Upper::reap(sub {
+        die $@ if $@; # This does not appear to do what you think it does.
         my $meta = Class::MOP::get_metaclass_by_name($class);
         if ( $meta->is_immutable && ! { $meta->immutable_options }->{inline_constructor} ) {
             die "You made your application class ($class) immutable, "