fix stackTrace symbol usage

This commit is contained in:
Jacek Sieka 2023-06-05 23:34:42 +02:00
parent 5ed05c90fb
commit 4d5dbb569a
No known key found for this signature in database
GPG Key ID: A1B09461ABB656B8
1 changed files with 4 additions and 1 deletions

View File

@ -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, "")