Fix empty error messages in issue 786

The message was assigned to Message.key and hence not printed.
This commit is contained in:
MoonlightSentinel 2020-01-04 15:10:58 +01:00
parent 31757b782b
commit be5acfcae8
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ const(Module) parseModule(string fileName, ubyte[] code, RollbackAllocator* p,
ulong* linesOfCode = null, uint* errorCount = null, uint* warningCount = null) ulong* linesOfCode = null, uint* errorCount = null, uint* warningCount = null)
{ {
auto writeMessages = delegate(string fileName, size_t line, size_t column, string message, bool isError){ auto writeMessages = delegate(string fileName, size_t line, size_t column, string message, bool isError){
return messageFunctionFormat(errorFormat, Message(fileName, line, column, message), isError); return messageFunctionFormat(errorFormat, Message(fileName, line, column, "dscanner.syntax", message), isError);
}; };
return parseModule(fileName, code, p, cache, tokens, return parseModule(fileName, code, p, cache, tokens,