]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 166318 - Bugzilla::Config should check for defparams.pl failure
authorbbaetz%student.usyd.edu.au <>
Wed, 4 Sep 2002 06:07:44 +0000 (06:07 +0000)
committerbbaetz%student.usyd.edu.au <>
Wed, 4 Sep 2002 06:07:44 +0000 (06:07 +0000)
r=joel x2

Bugzilla/Config.pm

index 76602e7adee7ec16a8395973c2b1395dfe5f6322..f9462cb41650a7e620f0ff86f884fd7ae2faa599 100644 (file)
@@ -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;