jsonrpc: Trivial compliance with JSON-RPC Error Object.

This commit is contained in:
ZmnSCPxj 2018-01-27 01:24:29 +00:00 committed by Christian Decker
parent 8c527f3931
commit b2133e969f

View File

@ -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);