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

Stations->add_or_update: show user-friendly error if latlon are missing

This can happen with EFA SEV stops
parent 7b0d8eda
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -205,6 +205,9 @@ sub add_or_update {
			);
			return;
		}
		if (not $stop->latlon) {
			die('Backend Error: Stop "' . $stop->full_name . '" has no geo coordinates');
		}
		$opt{db}->insert(
			'stations',
			{