ex-message

functionsince v0.0-1576Edit
(ex-message ex)

Source docstring:
Returns the message attached to the given Error / ExceptionInfo object.
For non-Errors returns nil.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn ex-message
  [ex]
  (when (instance? js/Error ex)
    (.-message ex)))