]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 575475: ANSI coloring of error messages was hiding template compilation
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 20 Jul 2010 06:00:44 +0000 (23:00 -0700)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 20 Jul 2010 06:00:44 +0000 (23:00 -0700)
errors
r=LpSolit, a=LpSolit

Bugzilla/Install/Util.pm

index 1e5a7b5e130c65aa2e41084b7eaa453847ff5769..41f608abfe644a1f917d9a86ee55ff8d46f640b6 100644 (file)
@@ -622,7 +622,9 @@ sub _console_die {
     # that it should put "at Bugzilla/Install.pm line 1234" after the
     # message.
     $message =~ s/\n+$//;
-    die colored($message, COLOR_ERROR) . "\n";
+    # We put quotes around the message to stringify any object exceptions,
+    # like Template::Exception.
+    die colored("$message", COLOR_ERROR) . "\n";
 }
 
 sub prevent_windows_dialog_boxes {