From b06b69af7cd8b3a7a767bc4cdae80a35bc7154d8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 6 Apr 2021 10:31:46 +0200 Subject: trainsearch_p: use correct hash key in error mesages --- lib/DBInfoscreen/Helper/HAFAS.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/DBInfoscreen/Helper/HAFAS.pm b/lib/DBInfoscreen/Helper/HAFAS.pm index a421c38..8d4c89f 100644 --- a/lib/DBInfoscreen/Helper/HAFAS.pm +++ b/lib/DBInfoscreen/Helper/HAFAS.pm @@ -254,8 +254,8 @@ sub trainsearch_p { } else { $self->{log}->warn( - "hafas->trainsearch_p($opt{train_no}): train not found"); - $promise->reject("Zug $opt{train_no} nicht gefunden"); + "hafas->trainsearch_p($opt{train_req}): train not found"); + $promise->reject("Zug $opt{train_req} nicht gefunden"); } # do not propagate $promise->reject's return value to this promise. @@ -266,7 +266,7 @@ sub trainsearch_p { )->catch( sub { my ($err) = @_; - $self->{log}->warn("hafas->trainsearch_p($opt{train_no}): $err"); + $self->{log}->warn("hafas->trainsearch_p($opt{train_req}): $err"); $promise->reject($err); # do not propagate $promise->reject's return value to this promise -- cgit v1.2.3