X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader.pm;h=0bd0049779899a19286a4d3bc3c8fd81baee8c25;hb=fc2b71fda3e7cebcb8df6430eb866754bf009350;hp=50d9dd9113f8bea642df036a58d7048727cfde0c;hpb=8f9d7ce50bb37fdc2a823b9c79b18fb32ee5f068;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader.pm b/lib/DBIx/Class/Schema/Loader.pm index 50d9dd9..0bd0049 100644 --- a/lib/DBIx/Class/Schema/Loader.pm +++ b/lib/DBIx/Class/Schema/Loader.pm @@ -13,7 +13,7 @@ use Scalar::Util qw/ weaken /; # Always remember to do all digits for the version even if they're 0 # i.e. first release of 0.XX *must* be 0.XX000. This avoids fBSD ports # brain damage and presumably various other packaging systems too -our $VERSION = '0.03001'; +our $VERSION = '0.03002'; __PACKAGE__->mk_classaccessor('dump_to_dir'); __PACKAGE__->mk_classaccessor('loader'); @@ -121,7 +121,6 @@ sub _invoke_loader { $class->loader($impl->new(%{$self->_loader_args})); $class->loader->load; - $self; } @@ -270,6 +269,7 @@ sub make_schema_at { __PACKAGE__->loader_options($opts_dumped); __PACKAGE__->connection($cinfo_dumped); |; + croak "make_schema_at failed: $@" if $@; } =head1 EXAMPLE