diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-18 22:05:30 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-18 22:05:30 +0200 |
commit | c3274392d7293fd394707efd10125eed2bdc62a7 (patch) | |
tree | a8479d3c1655411259d29a18bc3af0c618494bdc | |
parent | 12f530d3f54a68d7a91b74f259bdbf8340ffc512 (diff) |
new_p: Also return $self in case of error
This allows clients to access place_candidates and name_candidates in case
of ambiguous place/name errors.
Related: https://github.com/derf/travelynx/issues/249
-rw-r--r-- | lib/Travel/Status/DE/EFA.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm index 60c60be..e3669e1 100644 --- a/lib/Travel/Status/DE/EFA.pm +++ b/lib/Travel/Status/DE/EFA.pm @@ -54,7 +54,7 @@ sub new_p { } )->catch( sub { - my ($err) = @_; + my ( $err, $self ) = @_; $promise->reject($err); return; } |