Fix empty error messages in issue 786
The message was assigned to Message.key and hence not printed.
This commit is contained in:
parent
31757b782b
commit
be5acfcae8
|
@ -265,7 +265,7 @@ const(Module) parseModule(string fileName, ubyte[] code, RollbackAllocator* p,
|
|||
ulong* linesOfCode = null, uint* errorCount = null, uint* warningCount = null)
|
||||
{
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue