diff options
Diffstat (limited to 'lib/DBInfoscreen/Controller')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 5cb05c4..aa301fb 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -56,8 +56,13 @@ sub handle_no_results { $candidate->[0] =~ s{[&]#x0028;}{(}g; $candidate->[0] =~ s{[&]#x0029;}{)}g; } + my $err; + if ( not $errstr =~ m{LOCATION} ) { + $err = $errstr; + } $self->render( 'landingpage', + error => $err, stationlist => \@candidates, hide_opts => 0, status => 300, |