replace some runtime repr in stdlib for gc:arc (#12716)

This commit is contained in:
Andy Davidoff 2019-11-25 04:13:30 -05:00 • committed by Andreas Rumpf
commit bd8f49cbd3
3 changed files with 5 additions and 4 deletions

View file

@ -1206,7 +1206,8 @@ proc parseHexStr*(s: string): string {.noSideEffect, procvar,
for pos, c in s:
let val = hexCharToValueMap[ord(c)].ord
if val == 17:
raise newException(ValueError, "Invalid hex char " & repr(c))
raise newException(ValueError, "Invalid hex char `" &
c & "` (ord " & $c.ord & ")")
if pos mod 2 == 0:
buf = val
else: