Browse code

apps/jsonrpc: do not include "result" member in error response

Juha Heinanen authored on 25/05/2014 10:47:10
Showing 1 changed files
... ...
@@ -350,6 +350,7 @@ void JsonRpcServer::execRpc(const string& method, const string& id, const AmArg&
350 350
     // todo: notification!
351 351
     rpc_res["id"] = id;
352 352
     rpc_res["jsonrpc"] = "2.0";
353
+    rpc_res.erase("result");
353 354
     return;
354 355
   }
355 356
 }