From 34e40b93830abf2137a8841cde85f2d4b66e5e45 Mon Sep 17 00:00:00 2001 From: Simon Vrouwe Date: Fri, 8 Feb 2019 15:23:22 +0200 Subject: [PATCH] lightningd/json_dev_forget_channel: clarify message when both peer_id and scid are given mentioned in issue #2298 --- lightningd/peer_control.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightningd/peer_control.c b/lightningd/peer_control.c index e21e5d90d..8b2187bc0 100644 --- a/lightningd/peer_control.c +++ b/lightningd/peer_control.c @@ -1407,7 +1407,8 @@ static struct command_result *json_dev_forget_channel(struct command *cmd, } if (!forget->channel) { return command_fail(cmd, LIGHTNINGD, - "No channels matching that short_channel_id"); + "No channels matching that peer_id%s", + scid ? " and that short_channel_id" : ""); } if (channel_has_htlc_out(forget->channel) ||