raise PunchdError for errors from punchd
This commit is contained in:
parent
006ec73361
commit
9b2e72d7dc
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue