diff --git a/bin/hafas b/bin/hafas index a322ee7cdc6b6d1c5dcf4bd023daa0c64254b2ff..fd174d8a25bcd50c748ab8c1b34a919deeb30ad6 100755 --- a/bin/hafas +++ b/bin/hafas @@ -297,6 +297,12 @@ if ( my $err = $hafas->errstr ) { { show_similar_stops(); } + elsif ( $hafas->errcode and $hafas->errcode eq 'H890' ) { + say q{}; + say 'HAFAS was unable to find suitable connections.'; + say +'Maybe your mode of transport (-m) or change (-c / -C) filters are too restrictive?'; + } exit 2; }