summary refs log tree commit diff stats
path: root/compiler/msgs.nim
diff options
context:
space:
mode:
authorDanil Yarantsev <tiberiumk12@gmail.com>2020-06-01 18:07:01 +0300
committerGitHub <noreply@github.com>2020-06-01 17:07:01 +0200
commit3698f197f10b775cbe0824936637b7e7d294eb19 (patch)
treee6f333a6d7434886284b340c1ed95d06d1afda3e /compiler/msgs.nim
parent4bb301dbe2a8fcb9e019e286fdc0cbf622e84434 (diff)
downloadNim-3698f197f10b775cbe0824936637b7e7d294eb19.tar.gz
Change severity of template instantiation message [backport] (#14526)
* Change severity of template instatiation msg

* Add a test

* Trailing newline argh
Diffstat (limited to 'compiler/msgs.nim')
-rw-r--r--compiler/msgs.nim2
1 files changed, 1 insertions, 1 deletions
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