Address Comments

This commit is contained in:
Neelesh Chandola
2018-12-11 10:44:43 +05:30
parent abdfbd07a5
commit 5aba5875da

View File

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