Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better diagnostics.
  • Loading branch information
jnthn committed Jul 21, 2012
1 parent e179076 commit b6049ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/QAST/Compiler.nqp
Expand Up @@ -330,7 +330,14 @@ class QAST::Compiler is HLL::Compiler {
my $stmts;
{
my $*BLOCK := $block;
$stmts := self.compile_all_the_stmts($node.list);
my $err;
try {
$stmts := self.compile_all_the_stmts($node.list);
CATCH { $err := $! }
}
if $err {
nqp::die("Error while compiling block " ~ $node.name ~ ": $err");
}
}

# Generate parameter handling code.
Expand Down

0 comments on commit b6049ef

Please sign in to comment.