summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorVladislav Vorobiev <x.miere@gmail.com>2016-07-01 21:50:26 +0300
committerGitHub <noreply@github.com>2016-07-01 21:50:26 +0300
commite4b16ac6086d0311d3bd74a20e9cfbfc0c19ca4f (patch)
tree0a1ec90d490a474151b5a60bdabb69cdce5cdb5f /lib
parentd8ee2c240920db62537ad0861f336e700f72d162 (diff)
downloadNim-e4b16ac6086d0311d3bd74a20e9cfbfc0c19ca4f.tar.gz
Remove line breaks in OSError messages (Windows)
Before:
```
Error: unhandled exception: Не удается найти указанный файл.
 [OSError]
```
After:
```
Error: unhandled exception: Не удается найти указанный файл.  [OSError]
```
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/os.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/os.nim b/lib/pure/os.nim
index 52ba110a9..d543ec9a0 100644
--- a/lib/pure/os.nim
+++ b/lib/pure/os.nim
@@ -66,13 +66,13 @@ proc osErrorMsg*(): string {.rtl, extern: "nos$1", deprecated.} =
     if err != 0'i32:
       when useWinUnicode:
         var msgbuf: WideCString
-        if formatMessageW(0x00000100 or 0x00001000 or 0x00000200,
+        if formatMessageW(0x00000100 or 0x00001000 or 0x00000200 or 0x000000FF,
                           nil, err, 0, addr(msgbuf), 0, nil) != 0'i32:
           result = $msgbuf
           if msgbuf != nil: localFree(cast[pointer](msgbuf))
       else:
         var msgbuf: cstring
-        if formatMessageA(0x00000100 or 0x00001000 or 0x00000200,
+        if formatMessageA(0x00000100 or 0x00001000 or 0x00000200 or 0x000000FF,
                           nil, err, 0, addr(msgbuf), 0, nil) != 0'i32:
           result = $msgbuf
           if msgbuf != nil: localFree(msgbuf)