Merge pull request #9910 from nc-x/fix-semicolon

Fixes #9907
This commit is contained in:
Andreas Rumpf
2018-12-11 12:26:23 +01:00
committed by GitHub

View File

@@ -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"