From b3e8cb89ca0a15cfedb105669e325f72f4b09ced Mon Sep 17 00:00:00 2001 From: oakes Date: Sun, 4 Aug 2019 11:07:21 -0400 Subject: [PATCH] Use fn-name in error message --- src/iglu/glsl.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iglu/glsl.cljc b/src/iglu/glsl.cljc index 7f8f30e..d651e4b 100644 --- a/src/iglu/glsl.cljc +++ b/src/iglu/glsl.cljc @@ -24,7 +24,7 @@ (defmethod ->function-call ::assignment [fn-name args] (when-not (= 2 (count args)) - (throw (ex-info ":= requires 2 args" {}))) + (throw (ex-info (str fn-name " requires 2 args") {}))) (let [[sym val] args] (str (->subexpression sym) " = " (->subexpression val))))