mirror of
https://github.com/logseq/logseq.git
synced 2026-05-23 12:14:06 +00:00
Remove file path from captured errors
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
(if (and (string/blank? new-content)
|
||||
(not blocks-just-deleted?))
|
||||
(state/pub-event! [:capture-error {:error (js/Error. "Empty content")
|
||||
:payload {:file-path file-path}}])
|
||||
:payload {}}])
|
||||
(let [files [[file-path new-content]]
|
||||
repo (state/get-current-repo)]
|
||||
(file-handler/alter-files-handler! repo files {} {}))))
|
||||
|
||||
@@ -564,8 +564,6 @@
|
||||
(do
|
||||
(state/pub-event! [:capture-error {:error "Outliner invalid structure"
|
||||
:payload {:type :outliner/invalid-structure
|
||||
:blocks blocks
|
||||
:target-block target-block'
|
||||
:opt opts
|
||||
:data (mapv #(dissoc % :block/content) tx)}}])
|
||||
(throw (ex-info "Invalid outliner data"
|
||||
|
||||
Reference in New Issue
Block a user