From 35d859666eaae436891dec254afa818275989243 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 25 Oct 2020 16:31:55 +0100 Subject: ensure $@ is not clobbered before using it --- lib/DBInfoscreen/Helper/HAFAS.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index 300eda7..faf7848 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -113,8 +113,8 @@ sub get_xml_p { eval { $tree = XML::LibXML->load_xml( string => $body ) }; if ($@) { + $self->{log}->debug("hafas->get_xml_p($url): $@"); $cache->freeze( $url, {} ); - $self->{log}->debug("hafas->get_xml_p($url): Parse Error: $@"); $promise->reject; return; } -- cgit v1.2.3