Use ErrorColor when a warning that is turned into an error is raised (#21131)

Use ErrorColor when a warning that is turned into an error is raised
This commit is contained in:
Jake Leahy
2022-12-22 18:25:24 +11:00
committed by GitHub
parent c5a72ebddd
commit 70fe360456

View File

@@ -541,10 +541,11 @@ proc liMessage*(conf: ConfigRef; info: TLineInfo, msg: TMsgKind, arg: string,
ignoreMsg = not conf.hasWarn(msg)
if not ignoreMsg and msg in conf.warningAsErrors:
title = ErrorTitle
color = ErrorColor
else:
title = WarningTitle
color = WarningColor
if not ignoreMsg: writeContext(conf, info)
color = WarningColor
inc(conf.warnCounter)
of hintMin..hintMax:
sev = Severity.Hint