mirror of
https://github.com/logos-storage/questionable.git
synced 2026-01-02 13:53:11 +00:00
try repr
This commit is contained in:
parent
50feb1f25b
commit
e039d6a23f
@ -22,7 +22,7 @@ macro without*(condition, errorname, body: untyped): untyped =
|
|||||||
## Used to place guards that ensure that a Result contains a value.
|
## Used to place guards that ensure that a Result contains a value.
|
||||||
## Exposes error when Result does not contain a value.
|
## Exposes error when Result does not contain a value.
|
||||||
|
|
||||||
let errorIdent = ident errorname.strVal
|
let errorIdent = ident errorname.repr
|
||||||
|
|
||||||
# Nim's early symbol resolution might have picked up a symbol with the
|
# 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
|
# same name as our error variable. We need to undo this to make sure that our
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user