From 0817c4e1404d4b379c6d6dbb4beb821483d9cd41 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 5 Jul 2023 16:50:32 +0200 Subject: [PATCH] :sparkles: Print js trace on exceptional state error is raised --- frontend/src/app/main/errors.cljs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/app/main/errors.cljs b/frontend/src/app/main/errors.cljs index b70a6c367..635119234 100644 --- a/frontend/src/app/main/errors.cljs +++ b/frontend/src/app/main/errors.cljs @@ -155,6 +155,9 @@ (defmethod ptk/handle-error ::exceptional-state [error] + (when-let [cause (::instance error)] + (js/console.log (.-stack cause))) + (ts/schedule #(st/emit! (rt/assign-exception error))))