Remove debug echo

This commit is contained in:
coffeepots 2018-06-12 16:53:13 +01:00
parent 9613fe72a7
commit 2a6c1fb89a
1 changed files with 1 additions and 2 deletions

View File

@ -49,7 +49,6 @@ macro checkGet(node: JsonNode, fieldName: string,
of JFloat: result.add(quote do: `n`.getFloat)
of JObject: result.add(quote do: `n`.getObject)
else: discard
echo "!!!", result.repr
proc processMessage(self: RpcClient, line: string) =
let node = parseJson(line)
@ -64,7 +63,7 @@ proc processMessage(self: RpcClient, line: string) =
if not self.awaiting.hasKey(id):
raise newException(ValueError,
"Cannot find message id \"" & node["id"].str & "\"")
let errorNode = node{"error"}
if errorNode.isNil or errorNode.kind == JNull:
var res = node{"result"}