mirror of https://github.com/logseq/logseq
fix: convert error to string for instruments
parent
b0d26c055f
commit
32ddeaa3c8
|
@ -252,7 +252,7 @@
|
||||||
(p/catch (fn [error]
|
(p/catch (fn [error]
|
||||||
(state/pub-event! [:instrument {:type :write-file/failed
|
(state/pub-event! [:instrument {:type :write-file/failed
|
||||||
:payload {:path path
|
:payload {:path path
|
||||||
:error error}}])
|
:error (str error)}}])
|
||||||
(log/error :write-file/failed {:path path
|
(log/error :write-file/failed {:path path
|
||||||
:content content
|
:content content
|
||||||
:error error}))))))
|
:error error}))))))
|
||||||
|
|
Loading…
Reference in New Issue