diff options
author | ivan <ivan> | 2002-02-05 20:25:32 +0000 |
---|---|---|
committer | ivan <ivan> | 2002-02-05 20:25:32 +0000 |
commit | b6c28c086832416944440cab39f3bffc9d3dd1f1 (patch) | |
tree | e98179043177dcab739b5d7d3ff4bd059ba92b78 | |
parent | 30f31aae2dee3bdbec04f107e9d8cbb96442852e (diff) |
better error messages if you haven't run fs-setup ?
-rw-r--r-- | FS/FS/Record.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 4286606f0..755cef830 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1014,7 +1014,8 @@ I<$FS::Record::setup_hack> is true. Returns a DBIx::DBSchema object. sub reload_dbdef { my $file = shift || $dbdef_file; - $dbdef = load DBIx::DBSchema $file; + $dbdef = load DBIx::DBSchema $file + or die "can't load database schema from $file"; } =item dbdef |