From 1acd4feb4cf260b755743b97699f2aeed80ee9e4 Mon Sep 17 00:00:00 2001 From: anatoly Date: Thu, 25 Oct 2018 15:44:41 -0400 Subject: [PATCH] #100 cljs: throw js/Error not just a string --- src/mount/tools/macro.cljc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mount/tools/macro.cljc b/src/mount/tools/macro.cljc index fd602fc..2622b4e 100644 --- a/src/mount/tools/macro.cljc +++ b/src/mount/tools/macro.cljc @@ -16,7 +16,7 @@ :cljs (try ~f (catch :default t# (if ~fail? - (throw (~'str ~msg " " t#)) + (throw (js/Error (~'str ~msg " " t#))) {:f-failed (ex-info ~msg {} t#)}))))) (defmacro throw-runtime [msg]