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

r=joel x2
parent 4a4b3647
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment