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:
Jan Jurzitza 2020-01-04 23:05:46 +01:00 committed by GitHub
commit 6875f8e863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
{
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,