From c2973074f01760dde19ce68c48102dd99ba1ed77 Mon Sep 17 00:00:00 2001 From: Joseph Kump Date: Wed, 22 Jan 2025 11:51:47 -0600 Subject: [PATCH] Updated error message for AssertionError in shadowTuple (#2278) --- src/rules/jitrules.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rules/jitrules.jl b/src/rules/jitrules.jl index 8f2867c21c..4d3a3a4a2e 100644 --- a/src/rules/jitrules.jl +++ b/src/rules/jitrules.jl @@ -1140,7 +1140,9 @@ end ) where {Ann,Nargs} expr = Vector{Expr}(undef, Nargs) for i = 1:Nargs - @assert !(args[i] <: Active) + if args[i] <: Active + throw(AssertionError("Unsupported Active arg $(args[i])")) + end @inbounds expr[i] = if args[i] <: Const :(args[$i].val) elseif args[i] <: MixedDuplicated