Suppressor.jl icon indicating copy to clipboard operation
Suppressor.jl copied to clipboard

error backtraces not displayed

Open ssfrr opened this issue 7 years ago • 2 comments
trafficstars

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 avatar Jun 25 '18 03:06 ssfrr

Maybe https://github.com/JuliaLang/julia/issues/26798 ?

iamed2 avatar Jun 25 '18 19:06 iamed2

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

ssfrr avatar Jun 25 '18 20:06 ssfrr