use `Exception` to emulate `getCurrentException()`

This commit is contained in:
Dmitriy Ryajov 2019-11-29 14:30:58 -06:00 committed by zah
parent a5b051a14f
commit 26366f8b56
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ proc readLoop(sconn: SecureConnection, stream: BufferStream) {.async.} =
try: try:
let msg = await sconn.readMessage() let msg = await sconn.readMessage()
await stream.pushTo(msg) await stream.pushTo(msg)
except CatchableError as exc: except Exception as exc:
trace "exception in secio", exc = exc.msg trace "exception in secio", exc = exc.msg
return return
finally: finally: