Fixed error reporting for unexpected response id

This commit is contained in:
Yuriy Glukhov 2019-06-26 13:40:44 +03:00
parent 4bb08c671b
commit d031ab3eb4

View File

@ -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":