Unverified Commit c3274392 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

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
parent 12f530d3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ sub new_p {
		}
	)->catch(
		sub {
			my ($err) = @_;
			my ( $err, $self ) = @_;
			$promise->reject($err);
			return;
		}