summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzach%zachlipton.com <>2002-02-14 13:27:50 +0100
committerzach%zachlipton.com <>2002-02-14 13:27:50 +0100
commit7bda1fe6ea1364339cccca3d91fcab2ce6a23cf9 (patch)
treeda11566a6b77c628b56538e215f21a502a73ec0a
parent2e428770f619545b61deba345bd5431a0571dd6a (diff)
downloadbugzilla-7bda1fe6ea1364339cccca3d91fcab2ce6a23cf9.tar.gz
bugzilla-7bda1fe6ea1364339cccca3d91fcab2ce6a23cf9.tar.xz
Fix for bug 97290: checksetup.pl should report about errors in localconfig
r=kiko x2
-rwxr-xr-xchecksetup.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/checksetup.pl b/checksetup.pl
index 97b5d471f..bce70d295 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -22,6 +22,7 @@
# Terry Weissman <terry@mozilla.org>
# Dan Mosedale <dmose@mozilla.org>
# Dave Miller <justdave@syndicomm.com>
+# Zach Lipton <zach@zachlipton.com>
#
#
# Direct any questions on this source code to
@@ -265,6 +266,24 @@ if (@missing > 0) {
print "Checking user setup ...\n";
do 'localconfig';
+if ($@ ne "") { # capture errors in localconfig, bug 97290
+ print STDERR <<EOT;
+An error has occurred while reading your
+'localconfig' file. The text of the error message is:
+
+$@
+
+Please fix the error in your 'localconfig' file.
+Alternately rename your 'localconfig' file, rerun
+checksetup.pl, and re-enter your answers.
+
+ $ mv -f localconfig localconfig.old
+ $ ./checksetup.pl
+
+
+EOT
+die "Syntax error in localconfig";
+}
my $newstuff = "";
sub LocalVar ($$)
{