remove fauly fix for windows error being overwritten
This commit is contained in:
parent
43996c24a0
commit
087db3ce64
1 changed files with 2 additions and 3 deletions
|
|
@ -76,9 +76,8 @@ proc osErrorMsg*(): string {.rtl, extern: "nos$1", deprecated.} =
|
|||
nil, err, 0, addr(msgbuf), 0, nil) != 0'i32:
|
||||
result = $msgbuf
|
||||
if msgbuf != nil: localFree(msgbuf)
|
||||
else:
|
||||
if errno != 0'i32:
|
||||
result = $os.c_strerror(errno)
|
||||
if errno != 0'i32:
|
||||
result = $os.c_strerror(errno)
|
||||
|
||||
{.push warning[deprecated]: off.}
|
||||
proc raiseOSError*(msg: string = "") {.noinline, rtl, extern: "nos$1",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue