make hex digit error msg more helpful (#9727)
This commit is contained in:
parent
4929f74023
commit
4233046e3f
1 changed files with 2 additions and 1 deletions
|
|
@ -635,7 +635,8 @@ proc handleHexChar(L: var TLexer, xi: var int) =
|
||||||
inc(L.bufpos)
|
inc(L.bufpos)
|
||||||
else:
|
else:
|
||||||
lexMessage(L, errGenerated,
|
lexMessage(L, errGenerated,
|
||||||
"expected a hex digit, but found: " & L.buf[L.bufpos])
|
"expected a hex digit, but found: " & L.buf[L.bufpos] &
|
||||||
|
" ; maybe prepend with 0")
|
||||||
# Need to progress for `nim check`
|
# Need to progress for `nim check`
|
||||||
inc(L.bufpos)
|
inc(L.bufpos)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue