Skip to content

Commit 6667362

Browse files
committed
refs #7586; show surounding source also for hints and warnsings
1 parent 9cc8fec commit 6667362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/msgs.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ proc liMessage(info: TLineInfo, msg: TMsgKind, arg: string,
10481048
KindColor, `%`(KindFormat, kind))
10491049
else:
10501050
styledMsgWriteln(styleBright, x, resetStyle, color, title, resetStyle, s)
1051-
if msg in errMin..errMax and hintSource in gNotes:
1051+
if hintSource in gNotes:
10521052
info.writeSurroundingSrc
10531053
handleError(msg, eh, s)
10541054

0 commit comments

Comments
 (0)