From: ivan Date: Sat, 26 Aug 2006 14:39:35 +0000 (+0000) Subject: better error reporting for schema load failures (w/DBIx::DBSchema 0.32+), hopefully... X-Git-Tag: freeside_1_7_2~1^2~372 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=42cf7d3e2356d7b92fab9703de77e7ba747fabae;p=freeside.git better error reporting for schema load failures (w/DBIx::DBSchema 0.32+), hopefully... --- diff --git a/FS/FS/Schema.pm b/FS/FS/Schema.pm index 0bb97f483..ab68765dd 100644 --- a/FS/FS/Schema.pm +++ b/FS/FS/Schema.pm @@ -51,7 +51,7 @@ sub reload_dbdef { unless ( exists $dbdef_cache{$file} ) { warn "[debug]$me loading dbdef for $file\n" if $DEBUG; $dbdef_cache{$file} = DBIx::DBSchema->load( $file ) - or die "can't load database schema from $file"; + or die "can't load database schema from $file: $DBIx::DBSchema::errstr"; } else { warn "[debug]$me re-using cached dbdef for $file\n" if $DEBUG; }