diff options
author | Daniel Friesel <derf@finalrewind.org> | 2020-10-25 16:31:55 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2020-10-25 16:31:55 +0100 |
commit | 35d859666eaae436891dec254afa818275989243 (patch) | |
tree | a7b3a9dc26a1efe0d2a0d0df2700797d51b017b0 /lib/DBInfoscreen/Helper/HAFAS.pm | |
parent | 56bc71a8265b390420085576618f58232fcb23a4 (diff) |
ensure $@ is not clobbered before using it
Diffstat (limited to 'lib/DBInfoscreen/Helper/HAFAS.pm')
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 2 |
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; } |