diff --git a/src/main/frontend/worker/rtc/exception.cljs b/src/main/frontend/worker/rtc/exception.cljs index 5386e75ae6..de495d2860 100644 --- a/src/main/frontend/worker/rtc/exception.cljs +++ b/src/main/frontend/worker/rtc/exception.cljs @@ -57,4 +57,10 @@ the server will put it to s3 and return its presigned-url to clients."} (cond (instance? Cancelled e) (ex-info "missionary.Cancelled" {:message (.-message e)}) (instance? js/CloseEvent e) (ex-info "js/CloseEvent" {:type (.-type e)}) + + ;; m/race-failure + (and (instance? ExceptionInfo e) + (contains? (ex-data e) :missionary.core/errors)) + (ex-info (ex-message e) (update (ex-data e) :missionary.core/errors (fn [errors] (map e->ex-info errors)))) + :else e))