remove fauly fix for windows error being overwritten

This commit is contained in:
Jacek Sieka 2016-06-12 14:31:59 +08:00
commit 087db3ce64

View file

@ -76,9 +76,8 @@ proc osErrorMsg*(): string {.rtl, extern: "nos$1", deprecated.} =
nil, err, 0, addr(msgbuf), 0, nil) != 0'i32: nil, err, 0, addr(msgbuf), 0, nil) != 0'i32:
result = $msgbuf result = $msgbuf
if msgbuf != nil: localFree(msgbuf) if msgbuf != nil: localFree(msgbuf)
else: if errno != 0'i32:
if errno != 0'i32: result = $os.c_strerror(errno)
result = $os.c_strerror(errno)
{.push warning[deprecated]: off.} {.push warning[deprecated]: off.}
proc raiseOSError*(msg: string = "") {.noinline, rtl, extern: "nos$1", proc raiseOSError*(msg: string = "") {.noinline, rtl, extern: "nos$1",