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])