summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbbaetz%student.usyd.edu.au <>2002-09-04 08:07:44 +0200
committerbbaetz%student.usyd.edu.au <>2002-09-04 08:07:44 +0200
commit0f9e4c38f4cdfb34fcecc18b3be743c0faec2573 (patch)
treed79d5b682f51de3994e8886197ede747273f1852
parent4a4b36472dbe6a16666e21b7f9811b1bc2c265fa (diff)
downloadbugzilla-0f9e4c38f4cdfb34fcecc18b3be743c0faec2573.tar.gz
bugzilla-0f9e4c38f4cdfb34fcecc18b3be743c0faec2573.tar.xz
Bug 166318 - Bugzilla::Config should check for defparams.pl failure
r=joel x2
-rw-r--r--Bugzilla/Config.pm6
1 files changed, 5 insertions, 1 deletions
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;