summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-08 20:04:25 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-10-08 20:04:25 +0200
commit3ca18af9b6092b60a00d6fc8fcc9e08f4a01d253 (patch)
treebb3636a91cf6d8dd96d16fc17e7264b70ce696b7
parente8ff730320dc53846d74f3568936b272990cabff (diff)
make unknown stations warning more helpful
-rwxr-xr-xlib/Travelynx.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index a5dbcb8..e8030f1 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -757,8 +757,15 @@ sub startup {
= $self->grep_unknown_stations( $train->route );
if (@unknown_stations) {
$self->app->log->warn(
- 'Encountered unknown stations: '
- . join( ', ', @unknown_stations ) );
+ sprintf(
+'Route of %s %s (%s -> %s) contains unknown stations: %s',
+ $train->type,
+ $train->train_no,
+ $train->origin,
+ $train->destination,
+ join( ', ', @unknown_stations )
+ )
+ );
}
}
}