aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/Config.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Config.pm')
-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;