summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Helper
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-10 09:55:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-10-10 09:55:22 +0200
commita7c3539c6f0cb0497a24f579a98578203eea18a7 (patch)
treee9d81d5b0e7d23e3804c00429bc4a548675fca59 /lib/DBInfoscreen/Helper
parentbcc02b1935c367db49d57856eccf5152a91b6c45 (diff)
Do not break departure refresh when detail view is open3.4.1
Diffstat (limited to 'lib/DBInfoscreen/Helper')
-rw-r--r--lib/DBInfoscreen/Helper/HAFAS.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm
index e6cbb3f..d9c6516 100644
--- a/lib/DBInfoscreen/Helper/HAFAS.pm
+++ b/lib/DBInfoscreen/Helper/HAFAS.pm
@@ -152,7 +152,7 @@ sub get_xml_p {
)->catch(
sub {
my ($err) = @_;
- $self->{log}->warn("hafas->get_json_p($url): $err");
+ $self->{log}->warn("hafas->get_xml_p($url): $err");
$promise->reject($err);
return;
}
@@ -222,6 +222,7 @@ sub trainsearch_p {
$promise->resolve($result);
}
else {
+ $self->{log}->warn("hafas->trainsearch_p($opt{train_no}): train not found");
$promise->reject("Zug $opt{train_no} nicht gefunden");
}
@@ -233,6 +234,7 @@ sub trainsearch_p {
)->catch(
sub {
my ($err) = @_;
+ $self->{log}->warn("hafas->trainsearch_p($opt{train_no}): $err");
$promise->reject($err);
# do not propagate $promise->reject's return value to this promise