summaryrefslogtreecommitdiff
path: root/lib/Travel/Routing
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-05-01 09:10:48 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-05-01 09:10:48 +0200
commit6e8596639542c88f9f780f5dd8826ddbc597e52d (patch)
tree94713550a876ce1540f0cf4d62fe3f4ba2d1f6b3 /lib/Travel/Routing
parent888007201606932cf6d98352fa5604606118b087 (diff)
Save problematic place/name in Setup Exception and forward it to the user
Diffstat (limited to 'lib/Travel/Routing')
-rw-r--r--lib/Travel/Routing/DE/EFA.pm6
1 files changed, 4 insertions, 2 deletions
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,
);
}