From d031ab3eb4f08e6c06865c35e4a7db41f3870d7d Mon Sep 17 00:00:00 2001 From: Yuriy Glukhov Date: Wed, 26 Jun 2019 13:40:44 +0300 Subject: [PATCH] Fixed error reporting for unexpected response id --- json_rpc/client.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json_rpc/client.nim b/json_rpc/client.nim index a2e5a2b..853e7ed 100644 --- a/json_rpc/client.nim +++ b/json_rpc/client.nim @@ -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":