JuliaIO/Suppressor.jl

error backtraces not displayed

Opened this issue · 2 comments

ssfrr commented

Running @suppress error("wrongness") displays the red ERROR: wrongness, but doesn't display the backtrace. I'm a little confused by that because by the time the exception is being displayed we should be out of the finally block of the @suppress macro (https://github.com/JuliaIO/Suppressor.jl/blob/master/src/Suppressor.jl#L29-L37) so it doesn't seem like it should make a difference. Is there something weird with the way that errors are printed?

MWE:

julia> error("wrongness")
ERROR: wrongness
Stacktrace:
 [1] error(::String) at .\error.jl:21

julia> @suppress error("wrongness")
ERROR: wrongness

julia>
ssfrr commented

I believe that is only an issue on 0.7 using the new logging framework, this happens on 0.6 as well