diff options
author | Daniel Friesel <derf@finalrewind.org> | 2021-04-06 10:31:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2021-04-06 10:31:46 +0200 |
commit | b06b69af7cd8b3a7a767bc4cdae80a35bc7154d8 (patch) | |
tree | 6308835a423101ca734aba9de170c0409821bea1 /lib/DBInfoscreen | |
parent | 9590fab2b07b1f2f7b543779e0310f1a6b44ad73 (diff) |
trainsearch_p: use correct hash key in error mesages
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r-- | lib/DBInfoscreen/Helper/HAFAS.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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 |