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 <rusty@rustcorp.com.au>
This commit is contained in:
parent
5b3abd80b1
commit
de682f5806
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue