use correct names

This commit is contained in:
Dmitriy Ryajov 2019-09-01 15:56:00 -06:00
parent 12702e2cd2
commit f3cc6fbef0
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ type
LPStreamWriteError* = object of LPStreamError
par*: ref Exception
proc newAsyncStreamReadError*(p: ref Exception): ref Exception {.inline.} =
var w = newException(AsyncStreamReadError, "Read stream failed")
proc newLPStreamReadError*(p: ref Exception): ref Exception {.inline.} =
var w = newException(LPStreamReadError, "Read stream failed")
w.msg = w.msg & ", originated from [" & $p.name & "] " & p.msg
w.par = p
result = w