diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-07-09 17:41:47 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-07-09 17:41:51 +0200 |
commit | 2123a67ba0e1b03e1c286bd2d39e6771cc9f145b (patch) | |
tree | 49d60dc0e2b7aefe0bd4db32d8ec4d19afe8ee9c /lib/Travelynx.pm | |
parent | 1074f248cc415a397f16d0328a8f45fa6a867513 (diff) |
IRIS->get_departures_p: return string in first rejection argument
This is consistent with other promises within travelynx
Diffstat (limited to 'lib/Travelynx.pm')
-rwxr-xr-x | lib/Travelynx.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 0dc0f92..9958b7e 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -488,7 +488,7 @@ sub startup { } )->catch( sub { - my ($status) = @_; + my ( $err, $status ) = @_; $promise->reject( $status->{errstr} ); return; } @@ -2009,7 +2009,7 @@ sub startup { } )->catch( sub { - my ($dep) = @_; + my ( $err, $dep ) = @_; $self->traewelling->log( uid => $uid, message => |