Skip to content

Commit

Permalink
Ignore warnings when printing exception.
Browse files Browse the repository at this point in the history
Not a prefect solution, but actually getting an exception message out
is better than choking over warnings issues while producing it.
  • Loading branch information
jnthn committed May 16, 2015
1 parent 55ed38e commit 652c245
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/Exception.pm
Expand Up @@ -246,6 +246,7 @@ do {
nqp::printfh($err, "\n");
}
THE_END();
CONTROL { when CX::Warn { .resume } }
}
if $! {
nqp::rethrow(nqp::getattr(nqp::decont($!), Exception, '$!ex'));
Expand Down

0 comments on commit 652c245

Please sign in to comment.