From ce4cf0862c192c334e83de08f30a437da3aea888 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Mon, 19 Jul 2010 22:59:41 -0700 Subject: Bug 575475: ANSI coloring of error messages was hiding template compilation errors r=LpSolit, a=LpSolit --- Bugzilla/Install/Util.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Install/Util.pm b/Bugzilla/Install/Util.pm index 1e5a7b5e1..41f608abf 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 { -- cgit v1.2.3-24-g4f1b