log train number when encountering a timestamp error
This commit is contained in:
parent
e5f273ced3
commit
d66cf00d9d
1 changed files with 2 additions and 1 deletions
|
@ -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 ) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue