log requested station when throwing an ambiguous station name error
This commit is contained in:
parent
d3c8daf84c
commit
c348b2dff8
1 changed files with 4 additions and 2 deletions
|
@ -64,7 +64,8 @@ sub get_departures {
|
||||||
elsif ( @station_matches > 1 ) {
|
elsif ( @station_matches > 1 ) {
|
||||||
return {
|
return {
|
||||||
results => [],
|
results => [],
|
||||||
errstr => 'Mehrdeutiger Stationsname. Mögliche Eingaben: '
|
errstr =>
|
||||||
|
"Mehrdeutiger Stationsname: '$station'. Mögliche Eingaben: "
|
||||||
. join( q{, }, map { $_->[1] } @station_matches ),
|
. join( q{, }, map { $_->[1] } @station_matches ),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -150,7 +151,8 @@ sub get_departures_p {
|
||||||
return Mojo::Promise->reject(
|
return Mojo::Promise->reject(
|
||||||
{
|
{
|
||||||
results => [],
|
results => [],
|
||||||
errstr => 'Mehrdeutiger Stationsname. Mögliche Eingaben: '
|
errstr =>
|
||||||
|
"Mehrdeutiger Stationsname: '$station'. Mögliche Eingaben: "
|
||||||
. join( q{, }, map { $_->[1] } @station_matches ),
|
. join( q{, }, map { $_->[1] } @station_matches ),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue