diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-01-21 21:08:51 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-01-21 21:08:51 +0100 |
commit | 6266c68ab6e4eaf247132dd867e055fa733675df (patch) | |
tree | b0709c2563cf052799d3def9e79eede9ce84b687 /lib/system/excpt.nim | |
parent | 8c98277d5ae00aa3eb20796b5a271d6bc5d414ea (diff) | |
download | Nim-6266c68ab6e4eaf247132dd867e055fa733675df.tar.gz |
writeStackTrace now officially has no IO effect anymore for more convenient debugging
Diffstat (limited to 'lib/system/excpt.nim')
-rw-r--r-- | lib/system/excpt.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 8e42ea468..0087c6139 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -386,9 +386,9 @@ proc writeStackTrace() = when hasSomeStackTrace: var s = "" rawWriteStackTrace(s) - showErrorMessage(s) + cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)(s) else: - showErrorMessage("No stack traceback available\n") + cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)("No stack traceback available\n") proc getStackTrace(): string = when hasSomeStackTrace: |