From b402f05c90e7651b25a410755fab7acd3a74679f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sat, 6 Feb 2010 18:05:43 +0100 Subject: [PATCH] Don't output "Error:" twice. --- src/common/output.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/output.cpp b/src/common/output.cpp index b68bb0e3d..e99c2d262 100644 --- a/src/common/output.cpp +++ b/src/common/output.cpp @@ -65,7 +65,8 @@ mxmsg(int level, if (level == MXMSG_ERROR) { if (s_saw_cr_after_nl) g_mm_stdio->puts("\n"); - g_mm_stdio->puts(g_cc_stdio->native(Y("Error: "))); + if (!starts_with(message, Y("Error:"))) + g_mm_stdio->puts(g_cc_stdio->native(Y("Error: "))); } else if (level == MXMSG_WARNING) g_mm_stdio->puts(g_cc_stdio->native(Y("Warning: ")));