Commit 7e825ba8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

map: simplify error handling

parent 75e54f73
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -123,8 +123,10 @@ sub route {
			my ($err) = @_;
			$self->render(
				'route_map',
				title     => "Fehler",
				title     => "DBF",
				hide_opts => 1,
				with_map  => 1,
				error     => $err,
			);

		}
+0 −10
Original line number Diff line number Diff line
% if (my $err = stash('error')) {
  <div class="container">
    <div class="error">
      <strong>Fehler bei der Routenabfrage</strong>
%=    $err
    </div>
  </div>
% }
% else {
  <div class="container">
		<div id="map" style="height: 500px;">
		</div>
@@ -51,4 +42,3 @@ for (var station_id in stations) {
}

</script>
% }