From e98742a1adb76c365c058f4a4e92b6fcdbc35882 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Sun, 23 Jan 2022 01:55:02 +0100 Subject: [PATCH] Remove dynamic call in `check_args` macro --- src/utils.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/utils.jl b/src/utils.jl index 490e875fa..9277b2826 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -3,8 +3,7 @@ macro check_args(D, cond) quote if !($(esc(cond))) - throw(ArgumentError(string( - $(string(D)), ": the condition ", $(string(cond)), " is not satisfied."))) + throw(ArgumentError($(string(D, ": the condition ", cond, " is not satisfied.")))) end end end