summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-12-23 21:20:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-12-23 21:20:32 +0100
commit2534cae31f542329a9722818e27df5ecc65a1f68 (patch)
treef88d0a50dfdb607d38584598fce4c59427c5e811 /lib/Travelynx/Command
parent4b37560640ac2a5d1428127cc143a5e1050103fc (diff)
work: not finding a departing train is not critical
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r--lib/Travelynx/Command/work.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 958f731..811b8f1 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -57,7 +57,9 @@ sub run {
@{ $status->{results} };
if ( not $train ) {
- die("could not find train $train_id at $dep\n");
+ $self->log->info(
+ "could not find train $train_id at $dep\n");
+ return;
}
$self->app->in_transit->update_departure(