summaryrefslogtreecommitdiff
path: root/bin/hafas
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-10-27 14:59:22 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-10-27 14:59:46 +0100
commit2d1f3bcd683052ecaad75ead72cf7c3e595e8eb5 (patch)
tree93b1c452642160b655fa63f05adbf815975a3849 /bin/hafas
parenta7942591cfacde1e9c70b49a2347e24fd389ba01 (diff)
bin/hafas: Add human-readable explanation for H890
Diffstat (limited to 'bin/hafas')
-rwxr-xr-xbin/hafas6
1 files changed, 6 insertions, 0 deletions
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;
}