From 0516ff89e688b1e305e674d3e4ced4207b250b9b Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 18 Jun 2025 22:26:53 +0200 Subject: Stations->add_or_update: show user-friendly error if latlon are missing This can happen with EFA SEV stops --- lib/Travelynx/Model/Stations.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/Travelynx/Model/Stations.pm') diff --git a/lib/Travelynx/Model/Stations.pm b/lib/Travelynx/Model/Stations.pm index bf35d1a..c6d9730 100644 --- a/lib/Travelynx/Model/Stations.pm +++ b/lib/Travelynx/Model/Stations.pm @@ -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', { -- cgit v1.2.3