mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Give errors originating from Dsymbol::error the proper 'Error:' heading.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user