From 3ca18af9b6092b60a00d6fc8fcc9e08f4a01d253 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 8 Oct 2020 20:04:25 +0200 Subject: [PATCH] make unknown stations warning more helpful --- lib/Travelynx.pm | 11 +++++++++-- 1 file 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 ) + ) + ); } } }