[perl #131841] [BUG] In a 'unit module', a 'die' along any CATCH block causes a compiler error

2017-08-10 Thread Zoffix Znet via RT
On Mon, 07 Aug 2017 11:08:07 -0700, timo wrote:
> Annoyingly, 2017.07 has a bug that makes every --ll-exception print
> that

Just for reference, if needed, it's possible to work around that bug by telling 
rakudo to use a custom exceptions handler:

cd $(mktemp -d)
mkdir Exceptions
echo 'class Exceptions::Foo {
  method process ($e) {
  say "$e.message() $e.backtrace.full()";
  False
  }
  }' > Exceptions/Foo.pm6

RAKUDO_EXCEPTIONS_HANDLER=Foo perl6 -I. -MExceptions::Foo -e '…'


[perl #131841] [BUG] In a 'unit module', a 'die' along any CATCH block causes a compiler error

2017-08-10 Thread Zoffix Znet via RT
On Mon, 07 Aug 2017 11:08:07 -0700, timo wrote:
> Annoyingly, 2017.07 has a bug that makes every --ll-exception print
> that

Just for reference, if needed, it's possible to work around that bug by telling 
rakudo to use a custom exceptions handler:

cd $(mktemp -d)
mkdir Exceptions
echo 'class Exceptions::Foo {
  method process ($e) {
  say "$e.message() $e.backtrace.full()";
  False
  }
  }' > Exceptions/Foo.pm6

RAKUDO_EXCEPTIONS_HANDLER=Foo perl6 -I. -MExceptions::Foo -e '…'