Skip to content

Commit

Permalink
Add some diagnostics when a module fails to precomp
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jan 24, 2019
1 parent 3488a65 commit 89ca56a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Perl6/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,10 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
|| {
unless ~$<doc> && !%*COMPILING<%?OPTIONS><doc> {
my $oldmain := %*LANG<MAIN>;
CATCH {
nqp::say("Died doing '" ~ $/ ~ "' with:");
nqp::rethrow($_);
}
$*W.do_pragma_or_load_module($/,1);
:= $*LANG;
if nqp::istype($oldmain, %*LANG<MAIN>.WHAT) {
Expand Down

0 comments on commit 89ca56a

Please sign in to comment.