diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-04-16 04:55:04 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-04-16 04:55:04 +0200 |
commit | d66cf00d9d424ae8dfb3e0a6edeb3ddab2e8308b (patch) | |
tree | 7534fb06b7272e3720f4b50272bbb81bc909558e | |
parent | e5f273ced3beac04dcbee92c53474361f2a300fe (diff) |
log train number when encountering a timestamp error1.15.11
-rwxr-xr-x | lib/Travelynx.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) { |