Bug 166318 - Bugzilla::Config should check for defparams.pl failure

r=joel x2
This commit is contained in:
bbaetz%student.usyd.edu.au 2002-09-03 23:07:44 +00:00
parent e883ef274b
commit 9283e3b274

View File

@ -130,7 +130,11 @@ sub _load_datafiles {
_load_datafiles();
# Load in the param defintions
do 'defparams.pl';
unless (my $ret = do 'defparams.pl') {
die "Couldn't parse defparams.pl: $@" if $@;
die "Couldn't do defparams.pl: $!" unless defined $ret;
die "Couldn't run defparams.pl" unless $ret;
}
# Stick the params into a hash
my %params;