mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
jsonrpc: Trivial compliance with JSON-RPC Error Object.
This commit is contained in:
parent
8c527f3931
commit
b2133e969f
@ -332,7 +332,7 @@ static void json_result(struct json_connection *jcon,
|
|||||||
else
|
else
|
||||||
out->json = tal_fmt(out,
|
out->json = tal_fmt(out,
|
||||||
"{ \"jsonrpc\": \"2.0\", "
|
"{ \"jsonrpc\": \"2.0\", "
|
||||||
" \"error\" : %s,"
|
" \"error\" : { \"code\" : -1, \"message\" : %s},"
|
||||||
" \"id\" : %s }\n",
|
" \"id\" : %s }\n",
|
||||||
err, id);
|
err, id);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user