From cf136c2fdc484b074ac465971f7a9521189fc289 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Thu, 17 Jun 2021 13:05:49 -0700 Subject: [PATCH] cljs/1.9 compatibility --- src/honey/sql.cljc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/honey/sql.cljc b/src/honey/sql.cljc index bcbd21a..3d713e2 100644 --- a/src/honey/sql.cljc +++ b/src/honey/sql.cljc @@ -156,22 +156,22 @@ [x] (try (some-> (namespace x) (str/replace "-" "_")) - (catch Throwable t + (catch #?(:clj Throwable :cljs :default) t (throw (ex-info (str "expected symbol, found: " (type x)) {:symbol x - :failure (ex-message t)}))))) + :failure (str t)}))))) (defn- name-_ "Return the name portion of a symbol, with dashes converted." [x] (try (str/replace (name x) "-" "_") - (catch Throwable t + (catch #?(:clj Throwable :cljs :default) t (throw (ex-info (str "expected symbol, found: " (type x)) {:symbol x - :failure (ex-message t)}))))) + :failure (str t)}))))) (defn- sqlize-value [x] (cond