Just ran into this on 7.55:
╶➤ perl -MMojo::Promise -le 'my $p = Mojo::Promise->new; $p->reject("die, please");
$p->catch(sub { die "oops: $_[0]\n" }); $p->wait'
Silence... Change the die to a warn, and:
╶➤ perl -MMojo::Promise -le 'my $p = Mojo::Promise->new; $p->reject("die, please");
$p->catch(sub { warn "oops: $_[0]\n" }); $p->wait'
oops: die, please
The promise is correctly rejected (confirmed by poking at $p->{status}),
but the exception disappears. I'm guessing that wasn't the intent, but
I'm not entirely sure after a brief glance at the implementation...
-Rob
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.