From 9b2e72d7dcc40a517962e729e88c39511bcf5ba3 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Thu, 27 Aug 2020 00:06:51 +0200 Subject: [PATCH] raise PunchdError for errors from punchd --- examples/app/app.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/app/app.nim b/examples/app/app.nim index 879bad6..aeca967 100644 --- a/examples/app/app.nim +++ b/examples/app/app.nim @@ -96,7 +96,7 @@ proc handlePunchdMessages(conn: PunchdConnection) {.async.} = of "error": let outMsg = conn.outMessages[args[1]] conn.outMessages.del(args[1]) - outMsg.future.fail(newException(ServerError, args[2])) + outMsg.future.fail(newException(PunchdError, args[2])) of "progress": let outMsg = conn.outMessages[args[1]] asyncCheck outMsg.progressCb(outMsg.future, args[2])