croak if make_schema_at eval fails
Brandon Black [Tue, 6 Jun 2006 00:58:37 +0000 (00:58 +0000)]
lib/DBIx/Class/Schema/Loader.pm

index 50d9dd9..bc04069 100644 (file)
@@ -270,6 +270,7 @@ sub make_schema_at {
         __PACKAGE__->loader_options($opts_dumped);
         __PACKAGE__->connection($cinfo_dumped);
     |;
+    croak "make_schema_at failed: $@" if $@;
 }
 
 =head1 EXAMPLE