Skip to content

Commit cfa6901

Browse files
authored
Make MacroExpansionError subtype of Exception (#26)
1 parent 1609982 commit cfa6901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/macro_expansion.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function adopt_scope(ex, ctx::MacroContext)
7474
adopt_scope(ex, ctx.scope_layer.id)
7575
end
7676

77-
struct MacroExpansionError
77+
struct MacroExpansionError <: Exception
7878
context::Union{Nothing,MacroContext}
7979
ex::SyntaxTree
8080
msg::String

0 commit comments

Comments
 (0)