Skip to content
Permalink
Browse files

Add some diagnostics when a module fails to precomp

  • Loading branch information...
lizmat committed Jan 24, 2019
1 parent 3488a65 commit 89ca56affba135857bbcef83c399ce549daba2fe
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Perl6/Grammar.nqp
@@ -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) {

0 comments on commit 89ca56a

Please sign in to comment.
You can’t perform that action at this time.