Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve reporting of exceptions inside constants.
Previously they lacked line numbers and that the error happened while
evaluating a constant. Now both are in place. Fixes RT #123967.
  • Loading branch information
jnthn committed Apr 8, 2015
1 parent abed501 commit b05c2cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -3500,7 +3500,7 @@ class Perl6::Actions is HLL::Actions does STDActions {
else {
$con_block.push($value_ast);
my $value_thunk := $*W.create_simple_code_object($con_block, 'Block');
$value := $value_thunk();
$value := $*W.handle-begin-time-exceptions($/, 'evaluating a constant', $value_thunk);
$*W.add_constant_folded_result($value);
}

Expand Down

0 comments on commit b05c2cc

Please sign in to comment.