From 21174bc9e0367018f28c0b5fc98d0e0fca317160 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 8 Jun 2025 08:29:34 +0200 Subject: place_candidates, name_candidates: return Stop objects Fixes https://github.com/derf/db-fakedisplay/issues/38 once adopted there --- bin/efa-m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin') 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; -- cgit v1.2.3