mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 13:34:26 +00:00
use Exception
to emulate getCurrentException()
This commit is contained in:
parent
a5b051a14f
commit
26366f8b56
@ -404,7 +404,7 @@ proc readLoop(sconn: SecureConnection, stream: BufferStream) {.async.} =
|
||||
try:
|
||||
let msg = await sconn.readMessage()
|
||||
await stream.pushTo(msg)
|
||||
except CatchableError as exc:
|
||||
except Exception as exc:
|
||||
trace "exception in secio", exc = exc.msg
|
||||
return
|
||||
finally:
|
||||
|
Loading…
x
Reference in New Issue
Block a user