Fix empty error messages in issue 786 (#787)
Fix empty error messages in issue 786 Co-authored-by: Jan Jurzitza <gh@webfreak.org>
This commit is contained in:
commit
6875f8e863
|
@ -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