summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorivan <ivan>2006-08-26 14:39:35 +0000
committerivan <ivan>2006-08-26 14:39:35 +0000
commit42cf7d3e2356d7b92fab9703de77e7ba747fabae (patch)
tree813bcbfe20ee321e8275f8748ccf1331a39ab569 /FS
parent3d484726954a5b91bf1f7f7068e7e15c22fade3e (diff)
better error reporting for schema load failures (w/DBIx::DBSchema 0.32+), hopefully...
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/Schema.pm2
1 files changed, 1 insertions, 1 deletions
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;
}