make hex digit error msg more helpful (#9727)

This commit is contained in:
Timothee Cour 2018-11-16 04:09:19 -08:00 • committed by Andreas Rumpf
commit 4233046e3f

View file

@ -635,7 +635,8 @@ proc handleHexChar(L: var TLexer, xi: var int) =
inc(L.bufpos)
else:
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`
inc(L.bufpos)