From b2133e969fe0616e935fc7261d4a65feaf82c1b7 Mon Sep 17 00:00:00 2001 From: ZmnSCPxj Date: Sat, 27 Jan 2018 01:24:29 +0000 Subject: [PATCH] jsonrpc: Trivial compliance with JSON-RPC Error Object. --- lightningd/jsonrpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/jsonrpc.c b/lightningd/jsonrpc.c index 446a0fc3b..f5472cbd3 100644 --- a/lightningd/jsonrpc.c +++ b/lightningd/jsonrpc.c @@ -332,7 +332,7 @@ static void json_result(struct json_connection *jcon, else out->json = tal_fmt(out, "{ \"jsonrpc\": \"2.0\", " - " \"error\" : %s," + " \"error\" : { \"code\" : -1, \"message\" : %s}," " \"id\" : %s }\n", err, id);