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:
parent
c5a72ebddd
commit
70fe360456
1 changed files with 2 additions and 1 deletions
|
|
@ -541,10 +541,11 @@ proc liMessage*(conf: ConfigRef; info: TLineInfo, msg: TMsgKind, arg: string,
|
||||||
ignoreMsg = not conf.hasWarn(msg)
|
ignoreMsg = not conf.hasWarn(msg)
|
||||||
if not ignoreMsg and msg in conf.warningAsErrors:
|
if not ignoreMsg and msg in conf.warningAsErrors:
|
||||||
title = ErrorTitle
|
title = ErrorTitle
|
||||||
|
color = ErrorColor
|
||||||
else:
|
else:
|
||||||
title = WarningTitle
|
title = WarningTitle
|
||||||
|
color = WarningColor
|
||||||
if not ignoreMsg: writeContext(conf, info)
|
if not ignoreMsg: writeContext(conf, info)
|
||||||
color = WarningColor
|
|
||||||
inc(conf.warnCounter)
|
inc(conf.warnCounter)
|
||||||
of hintMin..hintMax:
|
of hintMin..hintMax:
|
||||||
sev = Severity.Hint
|
sev = Severity.Hint
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue