diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-11 10:44:43 +0530 |
---|---|---|
committer | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-11 10:44:43 +0530 |
commit | 5aba5875dad9bcc52a995139ec7e65b26377c38b (patch) | |
tree | 4f616c6da403b7dcb4d511e70158b5a66c1f164e /lib/pure/includes | |
parent | abdfbd07a5a4c63456c4bfa2823ee3ebc25dda8f (diff) | |
download | Nim-5aba5875dad9bcc52a995139ec7e65b26377c38b.tar.gz |
Address Comments
Diffstat (limited to 'lib/pure/includes')
-rw-r--r-- | lib/pure/includes/oserr.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pure/includes/oserr.nim b/lib/pure/includes/oserr.nim index 45066e443..abd0bf501 100644 --- a/lib/pure/includes/oserr.nim +++ b/lib/pure/includes/oserr.nim @@ -59,6 +59,7 @@ proc raiseOSError*(errorCode: OSErrorCode; additionalInfo = "") {.noinline.} = e.errorCode = errorCode.int32 e.msg = osErrorMsg(errorCode) if additionalInfo.len > 0: + if e.msg[^1] != '\n': e.msg.add '\n' e.msg.add "Additional info: " e.msg.addQuoted additionalInfo if e.msg == "": |