summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-06-08 08:29:34 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-06-08 08:29:34 +0200
commit21174bc9e0367018f28c0b5fc98d0e0fca317160 (patch)
tree7eae01acd4541162b117225bf7bda6d759380acf /bin/efa-m
parentd97790563dc97c130433cd12479cb2698c6f0201 (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-xbin/efa-m8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 3d9a7f5..1890db9 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -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;