summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-27 14:14:40 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-27 14:14:40 +0200
commit9ae7fa5bb5ee4bb76c0a1bae89d9288aa949b5b3 (patch)
tree47104022726502eefcf5c3c5cc7e479f8ae72340 /lib/DBInfoscreen
parentce1d4a51e148e2f225626c46b229a04b2db43041 (diff)
HAFAS->get_xml_p: Add a missing rejection handler3.3.5
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm
index 6a306d2..e6cbb3f 100644
--- a/lib/DBInfoscreen/Helper/HAFAS.pm
+++ b/lib/DBInfoscreen/Helper/HAFAS.pm
@@ -64,7 +64,7 @@ sub get_json_p {
)->catch(
sub {
my ($err) = @_;
- $self->{log}->warn("get($url): $err");
+ $self->{log}->warn("hafas->get_json_p($url): $err");
$promise->reject($err);
return;
}
@@ -151,6 +151,10 @@ sub get_xml_p {
}
)->catch(
sub {
+ my ($err) = @_;
+ $self->{log}->warn("hafas->get_json_p($url): $err");
+ $promise->reject($err);
+ return;
}
)->wait;