Skip to content

Commit f3b136f

Browse files
authored
Don't obscure inlining cause exceptions (#1016)
Fixes #1013 (second case I missed the first time around)
1 parent 77c1163 commit f3b136f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/basilisp/lang/compiler/analyzer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2662,6 +2662,10 @@ def _invoke_ast(form: Union[llist.PersistentList, ISeq], ctx: AnalyzerContext) -
26622662
expanded = inline_fn(*form.rest)
26632663
return __handle_macroexpanded_ast(form, expanded, ctx)
26642664
except Exception as e:
2665+
if isinstance(e, CompilerException) and ( # pylint: disable=no-member
2666+
e.phase == CompilerPhase.INLINING
2667+
):
2668+
raise
26652669
raise CompilerException(
26662670
"error occurred during inlining",
26672671
filename=ctx.filename,

0 commit comments

Comments
 (0)