mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-08 00:23:12 +00:00
Client now should fail the future on errors
This commit is contained in:
parent
c162f24253
commit
28ce222e23
@ -79,7 +79,7 @@ proc processMessage(self: RpcClient, line: string) =
|
||||
self.awaiting.del(id)
|
||||
# TODO: actions on unable find result node
|
||||
else:
|
||||
self.awaiting[id].complete((true, errorNode))
|
||||
self.awaiting[id].fail(newException(ValueError, $errorNode))
|
||||
self.awaiting.del(id)
|
||||
|
||||
proc connect*(self: RpcClient, address: string, port: Port): Future[void]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user