From 0f9e4c38f4cdfb34fcecc18b3be743c0faec2573 Mon Sep 17 00:00:00 2001 From: "bbaetz%student.usyd.edu.au" <> Date: Wed, 4 Sep 2002 06:07:44 +0000 Subject: Bug 166318 - Bugzilla::Config should check for defparams.pl failure r=joel x2 --- Bugzilla/Config.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Bugzilla/Config.pm b/Bugzilla/Config.pm index 76602e7ad..f9462cb41 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; -- cgit v1.2.3-24-g4f1b