Give errors originating from Dsymbol::error the proper 'Error:' heading.

This commit is contained in:
Christian Kamm
2008-07-29 13:48:46 +02:00
parent dd8982db1f
commit dd49c2ca00

View File

@@ -464,6 +464,7 @@ void Dsymbol::error(const char *format, ...)
fprintf(stdmsg, "%s: ", p);
mem.free(p);
fprintf(stdmsg, "Error: ");
if (isAnonymous())
fprintf(stdmsg, "%s ", kind());
else
@@ -494,6 +495,7 @@ void Dsymbol::error(Loc loc, const char *format, ...)
fprintf(stdmsg, "%s: ", p);
mem.free(p);
fprintf(stdmsg, "Error: ");
fprintf(stdmsg, "%s %s ", kind(), toPrettyChars());
va_list ap;