From a7c3539c6f0cb0497a24f579a98578203eea18a7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 10 Oct 2020 09:55:22 +0200 Subject: Do not break departure refresh when detail view is open --- lib/DBInfoscreen/Helper/HAFAS.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3