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 LPStreamWriteError* = object of LPStreamError
par*: ref Exception par*: ref Exception
proc newAsyncStreamReadError*(p: ref Exception): ref Exception {.inline.} = proc newLPStreamReadError*(p: ref Exception): ref Exception {.inline.} =
var w = newException(AsyncStreamReadError, "Read stream failed") var w = newException(LPStreamReadError, "Read stream failed")
w.msg = w.msg & ", originated from [" & $p.name & "] " & p.msg w.msg = w.msg & ", originated from [" & $p.name & "] " & p.msg
w.par = p w.par = p
result = w result = w