Skip to content

Commit

Permalink
Include backtrace when printing THE-END exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Apr 8, 2018
1 parent e8ec81d commit 6c2f244
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/Rakudo/Internals.pm6
Expand Up @@ -1618,7 +1618,8 @@ my constant $?BITS = nqp::isgt_i(nqp::add_i(2147483648, 1), 0) ?? 64 !! 32;
#?endif
if @exceptions {
note "Some exceptions were thrown in END blocks:";
note " $_.^name(): $_.message()" for @exceptions;
note " $_.^name(): $_.message() $_.backtrace()"
for @exceptions;
}
nqp::not_i(($the-end-is-done = 1)); # we're really done now
}
Expand Down

0 comments on commit 6c2f244

Please sign in to comment.