mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 02:39:28 +01:00
libplugin: mention error field in error message.
Reported-by: @cdecker Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c83823a525
commit
02436a8e6d
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,7 @@ static const jsmntok_t *read_rpc_reply(const tal_t *ctx,
|
|||
*contents = json_get_member(membuf_elems(&rpc->mb), toks,
|
||||
"result");
|
||||
if (!*contents)
|
||||
plugin_err("JSON reply with no 'result'? '%.*s'",
|
||||
plugin_err("JSON reply with no 'result' nor 'error'? '%.*s'",
|
||||
*reqlen, membuf_elems(&rpc->mb));
|
||||
*error = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue