From: bbaetz%student.usyd.edu.au <> Date: Wed, 4 Sep 2002 06:07:44 +0000 (+0000) Subject: Bug 166318 - Bugzilla::Config should check for defparams.pl failure X-Git-Tag: bugzilla-2.17.1~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f9e4c38f4cdfb34fcecc18b3be743c0faec2573;p=thirdparty%2Fbugzilla.git Bug 166318 - Bugzilla::Config should check for defparams.pl failure r=joel x2 --- diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 76602e7ade..f9462cb416 100644 --- a/Bugzilla/Config.pm +++ b/Bugzilla/Config.pm @@ -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;