Skip to content

Commit 9706494

Browse files
committed
Avoid UnwindException reports in load failures.
This prevents the real error from being obscured when e.g. a failure occurs during setting loading.
1 parent 4c00cda commit 9706494

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/vm/jvm/runtime/org/perl6/nqp/runtime/CompilationUnit.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ public void runLoadIfAvailable(ThreadContext tc) {
215215
try {
216216
Ops.invokeArgless(tc, loadCodeRef);
217217
}
218+
catch (ControlException e) {
219+
throw e;
220+
}
218221
catch (Exception e)
219222
{
220223
throw ExceptionHandling.dieInternal(tc, e.toString());

0 commit comments

Comments
 (0)