[bugfix] fix quit errormsg in nimvm (#11490)

This commit is contained in:
Jasper Jenkins 2019-06-13 06:30:30 -07:00 • committed by Andreas Rumpf
commit 06ef56ba72

View file

@ -3776,8 +3776,11 @@ proc quit*(errormsg: string, errorcode = QuitFailure) {.noReturn.} =
when defined(nimscript) or defined(js) or (hostOS == "standalone"): when defined(nimscript) or defined(js) or (hostOS == "standalone"):
echo errormsg echo errormsg
else: else:
cstderr.rawWrite(errormsg) when nimvm:
cstderr.rawWrite("\n") echo errormsg
else:
cstderr.rawWrite(errormsg)
cstderr.rawWrite("\n")
quit(errorcode) quit(errorcode)
{.pop.} # checks {.pop.} # checks