LoadError instead of thrown exception in macro execution on master

I’ve run into something that’s breaking a lot of my tests on master.
Previously, if an exception was thrown during macro execution, you got that error (in this case, ArgumentError), but now, you get a LoadError that holds the ArgumentError.

Of course, this broke all my @test_throws with formatted strings in StringLiterals.jl.

Was that change intentional, or is this something that will be fixed?

https://github.com/JuliaLang/julia/issues/24825

2 Likes