Skip to content

Commit

Permalink
Improve trait-triggered warning reporting
Browse files Browse the repository at this point in the history
Report position of the start of the trait, rather than the end
of the routine it's being applied to.
  • Loading branch information
zoffixznet committed Jan 14, 2018
1 parent 1ed8f5d commit f8953ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/World.nqp
Expand Up @@ -3736,7 +3736,7 @@ class Perl6::World is HLL::World {
CATCH { $ex := $_; }
CONTROL {
if nqp::getextype($_) == nqp::const::CONTROL_WARN {
$/.worry(nqp::getmessage($_));
$/.PRECURSOR.worry(nqp::getmessage($_));
nqp::resume($_);
}
nqp::rethrow($_);
Expand Down

0 comments on commit f8953ee

Please sign in to comment.