Address Comments
This commit is contained in:
parent
abdfbd07a5
commit
5aba5875da
1 changed files with 1 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ proc raiseOSError*(errorCode: OSErrorCode; additionalInfo = "") {.noinline.} =
|
||||||
e.errorCode = errorCode.int32
|
e.errorCode = errorCode.int32
|
||||||
e.msg = osErrorMsg(errorCode)
|
e.msg = osErrorMsg(errorCode)
|
||||||
if additionalInfo.len > 0:
|
if additionalInfo.len > 0:
|
||||||
|
if e.msg[^1] != '\n': e.msg.add '\n'
|
||||||
e.msg.add "Additional info: "
|
e.msg.add "Additional info: "
|
||||||
e.msg.addQuoted additionalInfo
|
e.msg.addQuoted additionalInfo
|
||||||
if e.msg == "":
|
if e.msg == "":
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue