diff --git a/src/Alert.jl b/src/Alert.jl index 92b61b3..aec06a5 100644 --- a/src/Alert.jl +++ b/src/Alert.jl @@ -263,7 +263,14 @@ end function init_alert_REPL!() if VERSION >= v"1.5" - push!(Base.active_repl_backend.ast_transforms, with_repl_alert) + try + push!(Base.active_repl_backend.ast_transforms, with_repl_alert) + catch e + @error "Unable to load REPL backend for Alert: \n"* + mapreduce(*, Base.catch_stack()) do (e, bt) + sprint(showerror, e, bt) + end + end end end