diff options
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-x | bin/efa-m | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; } |