Skip to content

Commit

Permalink
df: more descriptive error message
Browse files Browse the repository at this point in the history
  • Loading branch information
niftynei committed Feb 24, 2021
1 parent 5a11c8a commit fbaf8aa
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions openingd/dualopend.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,14 @@ static char *check_balances(const tal_t *ctx,
* - the value of the funding output is incorrect
*/
if (!amount_sat_eq(total_funding, output_val)) {
return "total desired funding != "
"funding output";
return tal_fmt(tmpctx, "total desired funding %s != "
"funding output %s",
type_to_string(tmpctx,
struct amount_sat,
&total_funding),
type_to_string(tmpctx,
struct amount_sat,
&output_val));
}

/* BOLT-78de9a79b491ae9fb84b1fdb4546bacf642dce87 #2:
Expand Down

0 comments on commit fbaf8aa

Please sign in to comment.