Skip to content

Commit

Permalink
json_getroute: don't return generic error.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rustyrussell authored and cdecker committed Jan 15, 2019
1 parent 5b3abd8 commit de682f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightningd/gossip_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit de682f5

Please sign in to comment.