From be5acfcae89b54db8354dfbb4c70925abd79d7d8 Mon Sep 17 00:00:00 2001 From: MoonlightSentinel Date: Sat, 4 Jan 2020 15:10:58 +0100 Subject: [PATCH] Fix empty error messages in issue 786 The message was assigned to Message.key and hence not printed. --- src/dscanner/analysis/run.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dscanner/analysis/run.d b/src/dscanner/analysis/run.d index e451b29..05b3c87 100644 --- a/src/dscanner/analysis/run.d +++ b/src/dscanner/analysis/run.d @@ -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,