diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 0087c61395..3d75a8704d 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -386,9 +386,9 @@ proc writeStackTrace() = when hasSomeStackTrace: var s = "" rawWriteStackTrace(s) - cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)(s) + cast[proc (s: cstring) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)(s) else: - cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)("No stack traceback available\n") + cast[proc (s: cstring) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)("No stack traceback available\n") proc getStackTrace(): string = when hasSomeStackTrace: