Skip to content

Commit

Permalink
don't do register_error_hint on old versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MasonProtter committed Feb 27, 2024
1 parent 5b15237 commit 7f78660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Accessors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ include("../ext/AccessorsLinearAlgebraExt.jl")
include("../ext/AccessorsTestExt.jl")

function __init__()
if isdefined(Base.Experimental, :register_error_hint)
if VERSION >= 1.9
Base.Experimental.register_error_hint(MethodError) do io, exc, argtypes, kwargs
if exc.f === insert && argtypes[2] <: Accessors.DynamicIndexLens
println(io)
Expand Down

0 comments on commit 7f78660

Please sign in to comment.