# LoadError instead of thrown exception in macro execution on master

**URL:** <https://discourse.julialang.org/t/loaderror-instead-of-thrown-exception-in-macro-execution-on-master/8546>\
**Category:** Internals & Design\
**Created:** [January 23, 2018, 4:25pm UTC](https://discourse.julialang.org/t/loaderror-instead-of-thrown-exception-in-macro-execution-on-master/8546 "2018-01-23T16:25:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ScottPJones](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/scottpjones/32/146_2.png) [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)\
**Post date:** [January 23, 2018, 4:25pm UTC](https://discourse.julialang.org/t/loaderror-instead-of-thrown-exception-in-macro-execution-on-master/8546/1 "2018-01-23T16:25:38Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [January 23, 2018, 5:30pm UTC](https://discourse.julialang.org/t/loaderror-instead-of-thrown-exception-in-macro-execution-on-master/8546/2 "2018-01-23T17:30:43Z")

</div>

[https://github.com/JuliaLang/julia/issues/24825](https://github.com/JuliaLang/julia/issues/24825)
