Skip to content

Commit

Permalink
Use str instead of format (because cljs doesn’t have it)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippamarkovics committed Oct 7, 2024
1 parent a7bb15d commit 3ba5df2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/nextjournal/clerk/viewer.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1558,8 +1558,9 @@
(defn validate-viewer! [{:as viewer :keys [render-fn]}]
(when (and render-fn (not (or (list? render-fn)
(symbol? render-fn))))
(throw (ex-info (format "`:render-fn` must to be a quoted form or symbol, got a %s instead." (if (fn? render-fn)
"function" (type render-fn)))
(throw (ex-info (str "`:render-fn` must to be a quoted form or symbol, got a "
(if (fn? render-fn) "function" (type render-fn))
" instead.")
{:viewer viewer
:render-fn-type (type render-fn)}))))

Expand Down

0 comments on commit 3ba5df2

Please sign in to comment.