df, nit: make this error message a little bit more informative

This commit is contained in:
niftynei 2020-10-14 20:20:41 -05:00 committed by Rusty Russell
parent a97e612442
commit 6d650064a0

View File

@ -1057,7 +1057,9 @@ static struct command_result *json_open_channel_update(struct command *cmd,
if (!uc)
return command_fail(cmd, FUNDING_UNKNOWN_CHANNEL,
"Unknown channel");
"Unknown channel %s",
type_to_string(tmpctx, struct channel_id,
cid));
if (!uc->fc || !uc->fc->inflight)
return command_fail(cmd, LIGHTNINGD,