Unverified Commit b1397229 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

hafas: show errors rather than location selection

parent 3d714495
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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,