diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-08 08:29:34 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-08 08:29:34 +0200 |
commit | 21174bc9e0367018f28c0b5fc98d0e0fca317160 (patch) | |
tree | 7eae01acd4541162b117225bf7bda6d759380acf /bin/efa-m | |
parent | d97790563dc97c130433cd12479cb2698c6f0201 (diff) |
place_candidates, name_candidates: return Stop objects
Fixes https://github.com/derf/db-fakedisplay/issues/38 once adopted there
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-x | bin/efa-m | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -555,11 +555,15 @@ if ( my $err = $efa->errstr ) { if ( $efa->place_candidates ) { say 'You might want to try one of the following places:'; - say join( "\n", $efa->place_candidates ); + for my $candidate ( $efa->place_candidates ) { + printf( "%d %s\n", $candidate->id_num, $candidate->name ); + } } elsif ( $efa->name_candidates ) { say 'You might want to try one of the following names:'; - say join( "\n", $efa->name_candidates ); + for my $candidate ( $efa->name_candidates ) { + printf( "%d %s\n", $candidate->id_num, $candidate->name ); + } } exit 2; |