diff options
author | Jacek Sieka <arnetheduck@gmail.com> | 2016-06-12 14:31:59 +0800 |
---|---|---|
committer | Jacek Sieka <arnetheduck@gmail.com> | 2016-06-12 14:31:59 +0800 |
commit | 087db3ce64990f93c3e85b2783acd375ac139147 (patch) | |
tree | bc7979df18727e1c8a19a785509405d8b9da8cab /lib/pure | |
parent | 43996c24a0e82dd935f0509bf7c9415ccb573b93 (diff) | |
download | Nim-087db3ce64990f93c3e85b2783acd375ac139147.tar.gz |
remove fauly fix for windows error being overwritten
Diffstat (limited to 'lib/pure')
-rw-r--r-- | lib/pure/os.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim index 8a39096d9..2b1cf7409 100644 --- a/lib/pure/os.nim +++ b/lib/pure/os.nim @@ -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", |