mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +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
|
||||
out->json = tal_fmt(out,
|
||||
"{ \"jsonrpc\": \"2.0\", "
|
||||
" \"error\" : %s,"
|
||||
" \"error\" : { \"code\" : -1, \"message\" : %s},"
|
||||
" \"id\" : %s }\n",
|
||||
err, id);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user