mirror of https://github.com/logseq/logseq
instrument: db persist failed
parent
0e4037ab61
commit
8ec98c0a68
|
@ -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)))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue