summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 5e2c68d..28fd2ad 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -338,6 +338,16 @@ $efa = new_efa_by_url($efa_url);
if ( my $err = $efa->errstr ) {
say STDERR "Request error: ${err}";
+
+ if ( $efa->place_candidates ) {
+ say 'You might want to try one of the following places:';
+ say join( "\n", $efa->place_candidates );
+ }
+ elsif ( $efa->name_candidates ) {
+ say 'You might want to try one of the following names:';
+ say join( "\n", $efa->name_candidates );
+ }
+
exit 2;
}