From 7f78660835c005a03be12a5625da2cb3cf3fa536 Mon Sep 17 00:00:00 2001 From: Mason Protter Date: Tue, 27 Feb 2024 15:58:57 +0100 Subject: [PATCH] don't do `register_error_hint` on old versions --- src/Accessors.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Accessors.jl b/src/Accessors.jl index e386fd83..e2049321 100644 --- a/src/Accessors.jl +++ b/src/Accessors.jl @@ -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)