Don't output "Error:" twice.

This commit is contained in:
Moritz Bunkus 2010-02-06 18:05:43 +01:00
parent 4bf6291406
commit b402f05c90

View File

@ -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: ")));