You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using 'my $p = Promise.start($code)' and die in that code for some
reason, I will get the die error message but the line number is of the
'await $p' line. It would be more helpful to have the line number of the
original die statement.
perl6 version 2015.11-5-g08a804c built on MoarVM version 2015.11
On Fri, 20 Nov 2015 08:19:56 -0800, mt1957@gmail.com wrote:
Hi,
When using 'my $p = Promise.start($code)' and die in that code for some
reason, I will get the die error message but the line number is of the
'await $p' line. It would be more helpful to have the line number of the
original die statement.
perl6 version 2015.11-5-g08a804c built on MoarVM version 2015.11
This was long ago improved. It now looks like this:
$ cat x.p6
my $p = start {
die "oops";
}
await $p;
$ ./perl6-m x.p6
Tried to get the result of a broken Promise
in block <unit> at x.p6 line 4
Original exception:
oops
in block at x.p6 line 2
And I remember putting in tests for it, so resolving.
Migrated from rt.perl.org#126692 (status was 'resolved')
Searchable as RT126692$
The text was updated successfully, but these errors were encountered: