On Fri, 20 Nov 2015 08:19:56 -0800, mt1...@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.

Reply via email to