On Sun, 27 Aug 2017 04:31:45 -0700, mar...@senfdax.de wrote: > <ufobat> m: my $c = "Some::Thing"; ::($c).new() > <camelia> rakudo-moar f097e5: OUTPUT: «FailedActually thrown at: in > block <unit> at <tmp> line 1» > <ufobat> this error is not really helpful :( > <ufobat> shoudn't this failure be converted into an exception? i'd > expect something like this: > <ufobat> m: my $c = "Some::Thing"; try { ::($c).new(); CATCH {default { > $_.throw } } } > <camelia> rakudo-moar f097e5: OUTPUT: «No such symbol 'Some::Thing' in > block at <tmp> line 1 in block <unit> at <tmp> line 1» > <Skarsnik> you can fill a bug repport for that I think
It's not that the Failure is not converted to an exception... it's that the Exception being loaded into the Failure is empty of useful data: $perl6 -e 'my $c = "Some::Thing"; ::($c).new().perl.say' Failure.new(exception => X::AdHoc.new(payload => "Failed"), backtrace => Backtrace.new) ...something is not putting an X::NoSuchSymbol into the Failure.