diff --git a/webtools/bugzilla/Bugzilla/Config.pm b/webtools/bugzilla/Bugzilla/Config.pm index 76602e7adee7..f9462cb41650 100644 --- a/webtools/bugzilla/Bugzilla/Config.pm +++ b/webtools/bugzilla/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;