mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
plugins/renepay: don't require raw_message in error reply.
It's not there if it's a local error: ``` { "code": 202, "message": "Parsing '{message:%,data:{erring_index:%,failcode:%,raw_message:': object does not have member raw_message" } ``` Reported-by: https://github.com/daywalker90 Fixes: #6553 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
1f929114d9
commit
d032a23647
1 changed files with 2 additions and 1 deletions
|
@ -1285,11 +1285,12 @@ static struct pf_result *sendpay_failure(struct pay_flow *pf,
|
|||
}
|
||||
|
||||
/* Extract remaining fields for feedback */
|
||||
raw = NULL;
|
||||
err = json_scan(tmpctx, buf, sub,
|
||||
"{message:%"
|
||||
",data:{erring_index:%"
|
||||
",failcode:%"
|
||||
",raw_message:%}}",
|
||||
",raw_message?:%}}",
|
||||
JSON_SCAN_TAL(tmpctx, json_strdup, &msg),
|
||||
JSON_SCAN(json_to_u32, &erridx),
|
||||
JSON_SCAN(json_to_u32, &onionerr),
|
||||
|
|
Loading…
Add table
Reference in a new issue