mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-10 09:33:06 +00:00
Fixed error reporting for unexpected response id
This commit is contained in:
parent
4bb08c671b
commit
d031ab3eb4
@ -62,7 +62,7 @@ proc processMessage*(self: RpcClient, line: string) =
|
||||
|
||||
if not self.awaiting.hasKey(id):
|
||||
raise newException(ValueError,
|
||||
"Cannot find message id \"" & node["id"].str & "\"")
|
||||
"Cannot find message id \"" & $node["id"].getInt & "\"")
|
||||
|
||||
let version = checkGet(node, "jsonrpc", JString)
|
||||
if version != "2.0":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user