diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 6 |
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; |