mirror of
https://github.com/status-im/nim-unittest2.git
synced 2025-02-23 07:08:07 +00:00
fix stackTrace symbol usage
This commit is contained in:
parent
5ed05c90fb
commit
4d5dbb569a
@ -794,7 +794,10 @@ template fail* =
|
||||
{.gcsafe.}:
|
||||
for formatter in formatters:
|
||||
when declared(stackTrace):
|
||||
formatter.failureOccurred(checkpoints, stackTrace)
|
||||
when stackTrace is string:
|
||||
formatter.failureOccurred(checkpoints, stackTrace)
|
||||
else:
|
||||
formatter.failureOccurred(checkpoints, "")
|
||||
else:
|
||||
formatter.failureOccurred(checkpoints, "")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user