From: Max Kanat-Alexander Date: Tue, 20 Jul 2010 06:00:44 +0000 (-0700) Subject: Bug 575475: ANSI coloring of error messages was hiding template compilation X-Git-Tag: bugzilla-3.7.3~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=213973c0c312de860bffc715a27594b9733d33dc;p=thirdparty%2Fbugzilla.git Bug 575475: ANSI coloring of error messages was hiding template compilation errors r=LpSolit, a=LpSolit --- diff --git a/Bugzilla/Install/Util.pm b/Bugzilla/Install/Util.pm index 1e5a7b5e13..41f608abfe 100644 --- a/Bugzilla/Install/Util.pm +++ b/Bugzilla/Install/Util.pm @@ -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 {