From: Brandon Black Date: Tue, 6 Jun 2006 00:58:37 +0000 (+0000) Subject: croak if make_schema_at eval fails X-Git-Tag: 0.03002~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6b707971ce2da4ac6b3e886c7a3c6daf49579f1b;hp=4421d6a300ce7bdd33c1f9a7870b8a2ad2baef53;p=dbsrgits%2FDBIx-Class-Schema-Loader.git croak if make_schema_at eval fails --- diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index 50d9dd9..bc04069 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -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