diff --git a/lib/system/excpt.nim b/lib/system/excpt.nim index 8ba3a16017..5b7d4d49fe 100644 --- a/lib/system/excpt.nim +++ b/lib/system/excpt.nim @@ -444,7 +444,7 @@ proc raiseExceptionAux(e: sink(ref Exception)) {.nodestroy.} = {.emit: "throw;".} else: pushCurrentException(e) - {.emit: "throw e;".} + {.emit: "throw `e`;".} elif defined(nimQuirky) or gotoBasedExceptions: # XXX This check should likely also be done in the setjmp case below. if e != currException: