From de682f580628f817185c90c15b0aa852994df995 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 15 Jan 2019 14:38:27 +1030 Subject: [PATCH] json_getroute: don't return generic error. We use the PAY error code here, but it's appropriate (otherwise the pay command simply has to substitute it, which seems silly). Signed-off-by: Rusty Russell --- lightningd/gossip_control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightningd/gossip_control.c b/lightningd/gossip_control.c index 21f10aeb3..d28ce2b0f 100644 --- a/lightningd/gossip_control.c +++ b/lightningd/gossip_control.c @@ -280,7 +280,7 @@ static void json_getroute_reply(struct subd *gossip UNUSED, const u8 *reply, con fromwire_gossip_getroute_reply(reply, reply, &hops); if (tal_count(hops) == 0) { - was_pending(command_fail(cmd, LIGHTNINGD, + was_pending(command_fail(cmd, PAY_ROUTE_NOT_FOUND, "Could not find a route")); return; }