From fbaf8aa6d93fbb5eb05e26b2fa3f4458a6e1f44a Mon Sep 17 00:00:00 2001 From: niftynei Date: Wed, 10 Feb 2021 17:42:03 -0600 Subject: [PATCH] df: more descriptive error message --- openingd/dualopend.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openingd/dualopend.c b/openingd/dualopend.c index 4e9f10dc4..0a0d8d596 100644 --- a/openingd/dualopend.c +++ b/openingd/dualopend.c @@ -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: