diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-11 12:26:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-11 12:26:23 +0100 |
commit | 3177aee75f52ea57a63d03ac26c8ce01751f08ef (patch) | |
tree | e54b538e51ffd77ce92f871d569f8f5e6b4e2b63 | |
parent | 4ec40796e64a6cf9fa34eaaf7de880076f8c2859 (diff) | |
parent | 5aba5875dad9bcc52a995139ec7e65b26377c38b (diff) | |
download | Nim-3177aee75f52ea57a63d03ac26c8ce01751f08ef.tar.gz |
Merge pull request #9910 from nc-x/fix-semicolon
Fixes #9907
-rw-r--r-- | lib/pure/includes/oserr.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/includes/oserr.nim b/lib/pure/includes/oserr.nim index 72c3f4f49..abd0bf501 100644 --- a/lib/pure/includes/oserr.nim +++ b/lib/pure/includes/oserr.nim @@ -59,7 +59,8 @@ proc raiseOSError*(errorCode: OSErrorCode; additionalInfo = "") {.noinline.} = e.errorCode = errorCode.int32 e.msg = osErrorMsg(errorCode) if additionalInfo.len > 0: - e.msg.add "; Additional info: " + if e.msg[^1] != '\n': e.msg.add '\n' + e.msg.add "Additional info: " e.msg.addQuoted additionalInfo if e.msg == "": e.msg = "unknown OS error" |