From 2d1f3bcd683052ecaad75ead72cf7c3e595e8eb5 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 27 Oct 2024 14:59:22 +0100 Subject: bin/hafas: Add human-readable explanation for H890 --- bin/hafas | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/hafas') diff --git a/bin/hafas b/bin/hafas index a322ee7..fd174d8 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; } -- cgit v1.2.3