summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ) {