try strVal

This commit is contained in:
Jaremy Creechley 2023-07-28 01:45:28 -07:00
parent ced675233b
commit 50feb1f25b
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ macro without*(condition, errorname, body: untyped): untyped =
## Used to place guards that ensure that a Result contains a value.
## Exposes error when Result does not contain a value.
let errorIdent = ident $errorname
let errorIdent = ident errorname.strVal
# Nim's early symbol resolution might have picked up a symbol with the
# same name as our error variable. We need to undo this to make sure that our