From f3cc6fbef02ad87fd9053feb82aa766a70ee8ae3 Mon Sep 17 00:00:00 2001 From: Dmitriy Ryajov Date: Sun, 1 Sep 2019 15:56:00 -0600 Subject: [PATCH] use correct names --- libp2p/stream/lpstream.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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