summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-25 16:31:55 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-10-25 16:31:55 +0100
commit35d859666eaae436891dec254afa818275989243 (patch)
treea7b3a9dc26a1efe0d2a0d0df2700797d51b017b0
parent56bc71a8265b390420085576618f58232fcb23a4 (diff)
ensure $@ is not clobbered before using it
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm2
1 files changed, 1 insertions, 1 deletions
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;
}