diff --git a/libp2p/stream/lpstream.nim b/libp2p/stream/lpstream.nim index a22d03573..9c947dc8b 100644 --- a/libp2p/stream/lpstream.nim +++ b/libp2p/stream/lpstream.nim @@ -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