async: use $ and not repr in debug mode
This commit is contained in:
parent
1794cd477d
commit
d19206755b
1 changed files with 1 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ proc checkFinished[T](future: Future[T]) =
|
||||||
msg.add("\n" & indent(($future.stackTrace).strip(), 4))
|
msg.add("\n" & indent(($future.stackTrace).strip(), 4))
|
||||||
when T is string:
|
when T is string:
|
||||||
msg.add("\n Contents (string): ")
|
msg.add("\n Contents (string): ")
|
||||||
msg.add("\n" & indent(future.value.repr, 4))
|
msg.add("\n" & indent($future.value, 4))
|
||||||
msg.add("\n Stack trace to moment of secondary completion:")
|
msg.add("\n Stack trace to moment of secondary completion:")
|
||||||
msg.add("\n" & indent(getStackTrace().strip(), 4))
|
msg.add("\n" & indent(getStackTrace().strip(), 4))
|
||||||
var err = newException(FutureError, msg)
|
var err = newException(FutureError, msg)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue