From 6e8596639542c88f9f780f5dd8826ddbc597e52d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 1 May 2018 09:10:48 +0200 Subject: Save problematic place/name in Setup Exception and forward it to the user --- lib/Travel/Routing/DE/EFA.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Travel/Routing/DE/EFA.pm b/lib/Travel/Routing/DE/EFA.pm index 32502fa..a89bbb1 100644 --- a/lib/Travel/Routing/DE/EFA.pm +++ b/lib/Travel/Routing/DE/EFA.pm @@ -839,13 +839,15 @@ sub check_ambiguous_xml { if ( $s_place eq 'notidentified' ) { Travel::Routing::DE::EFA::Exception::Setup->throw( option => 'place', - error => 'unknown place (typo?)' + error => 'unknown place', + have => ( $e_place->findnodes($xp_place_input) )[0]->textContent, ); } if ( $s_name eq 'notidentified' ) { Travel::Routing::DE::EFA::Exception::Setup->throw( option => 'name', - error => 'unknown name (typo?)' + error => 'unknown name', + have => ( $e_name->findnodes($xp_name_input) )[0]->textContent, ); } -- cgit v1.2.3