mirror of https://github.com/logseq/logseq
fix(mobile): log print error instead of js/alert
Avoid annoying javascript alert windowpull/4418/head
parent
a816143235
commit
dd48d264e9
|
@ -208,7 +208,7 @@
|
||||||
:encoding (.-UTF8 Encoding)}))]
|
:encoding (.-UTF8 Encoding)}))]
|
||||||
content)
|
content)
|
||||||
(p/catch (fn [error]
|
(p/catch (fn [error]
|
||||||
(js/alert error))))))
|
(log/error :read-file-failed error))))))
|
||||||
(delete-file! [_this repo dir path {:keys [ok-handler error-handler]}]
|
(delete-file! [_this repo dir path {:keys [ok-handler error-handler]}]
|
||||||
(let [path (get-file-path dir path)]
|
(let [path (get-file-path dir path)]
|
||||||
(p/catch
|
(p/catch
|
||||||
|
|
Loading…
Reference in New Issue