From d66cf00d9d424ae8dfb3e0a6edeb3ddab2e8308b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 16 Apr 2020 04:55:04 +0200 Subject: log train number when encountering a timestamp error --- lib/Travelynx.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 091a382..4014761 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -807,7 +807,8 @@ sub startup { my $tx = $db->begin; if ( defined $train and not $train->arrival and not $force ) { - die("Train has no arrival timestamp\n"); + my $train_no = $train->train_no; + die("Train ${train_no} has no arrival timestamp\n"); } elsif ( defined $train and $train->arrival ) { -- cgit v1.2.3