summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Travel/Status/DE/IRIS/Result.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm
index d5c4845..2b9adaa 100644
--- a/lib/Travel/Status/DE/IRIS/Result.pm
+++ b/lib/Travel/Status/DE/IRIS/Result.pm
@@ -670,8 +670,9 @@ sub info {
sub line {
my ($self) = @_;
- return
- sprintf( '%s %s', $self->{type}, $self->{line_no} // $self->{train_no} );
+ return sprintf( '%s %s',
+ $self->{type} // 'Zug',
+ $self->{line_no} // $self->{train_no} // '-' );
}
sub route_pre {