From 3698f197f10b775cbe0824936637b7e7d294eb19 Mon Sep 17 00:00:00 2001 From: Danil Yarantsev Date: Mon, 1 Jun 2020 18:07:01 +0300 Subject: Change severity of template instantiation message [backport] (#14526) * Change severity of template instatiation msg * Add a test * Trailing newline argh --- compiler/msgs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/msgs.nim') diff --git a/compiler/msgs.nim b/compiler/msgs.nim index c4658abcf..eca3b0276 100644 --- a/compiler/msgs.nim +++ b/compiler/msgs.nim @@ -421,7 +421,7 @@ proc writeContext(conf: ConfigRef; lastinfo: TLineInfo) = if context.info != lastinfo and context.info != info: if conf.structuredErrorHook != nil: conf.structuredErrorHook(conf, context.info, instantiationFrom, - Severity.Error) + Severity.Hint) else: let message = if context.detail == "": instantiationFrom -- cgit 1.4.1-2-gfad0