instrument: db persist failed

pull/6915/head
Tienson Qin 2022-10-08 15:52:24 +08:00
parent 0e4037ab61
commit 8ec98c0a68
1 changed files with 3 additions and 0 deletions

View File

@ -460,6 +460,9 @@
(on-success)))
(p/catch (fn [error]
(js/console.error error)
(state/pub-event! [:instrument {:type :db/persist-failed
:payload {:error-str (str error)
:error error}}])
(when on-error
(on-error)))))))