summaryrefslogtreecommitdiff
path: root/lib/Travelynx.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-02-08 18:08:19 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-02-08 18:08:19 +0100
commit9666a2c6bcd66cab5be07e9458429405dd3cf889 (patch)
tree0b72112b19e4822f712f1b438dc71569f7814bc4 /lib/Travelynx.pm
parent3f33341a2e848bbf31a083aaf07672136f73ec40 (diff)
Do not warn on HAFAS "extra content at the end" (that's just an in-band 404)
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-xlib/Travelynx.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index 882aab6..f028909 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -1228,7 +1228,9 @@ sub startup {
)->catch(
sub {
my ($err) = @_;
- if ( $err eq 'trainlink not found' ) {
+ if ( $err
+ =~ m{trainlink not found|extra content at the end}i )
+ {
$self->app->log->debug("add_route_timestamps: $err");
}
else {