#100 cljs: throw js/Error not just a string
This commit is contained in:
parent
c210cc486c
commit
1acd4feb4c
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue