Skip to content

Commit

Permalink
Use fn-name in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
oakes committed Aug 4, 2019
1 parent c3f1ecb commit b3e8cb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iglu/glsl.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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))))

Expand Down

0 comments on commit b3e8cb8

Please sign in to comment.