From: ivan Date: Thu, 23 Oct 2003 22:35:04 +0000 (+0000) Subject: fix error reporting for problems loading DBIx::DBSchema::DBD drivers X-Git-Tag: DBIx_DBSchema_0_22 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=95449514c43eab6e63ecf25b4775ee0f43bfa08d;p=DBIx-DBSchema.git fix error reporting for problems loading DBIx::DBSchema::DBD drivers --- diff --git a/DBSchema.pm b/DBSchema.pm index ebdf607..76f877c 100644 --- a/DBSchema.pm +++ b/DBSchema.pm @@ -314,7 +314,7 @@ sub _load_driver { #require "DBIx/DBSchema/DBD/$driver.pm"; #$driver; - eval 'require "DBIx/DBSchema/DBD/$driver.pm"' and $driver; + eval 'require "DBIx/DBSchema/DBD/$driver.pm"' and $driver or die $@; } sub _tables_from_dbh {