summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-04-16 04:55:04 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-04-16 04:55:04 +0200
commitd66cf00d9d424ae8dfb3e0a6edeb3ddab2e8308b (patch)
tree7534fb06b7272e3720f4b50272bbb81bc909558e
parente5f273ced3beac04dcbee92c53474361f2a300fe (diff)
log train number when encountering a timestamp error1.15.11
-rwxr-xr-xlib/Travelynx.pm3
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 ) {