mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 13:34:26 +00:00
use correct names
This commit is contained in:
parent
12702e2cd2
commit
f3cc6fbef0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user