mirror of
https://github.com/penpot/penpot.git
synced 2025-06-10 03:11:41 +02:00
🎉 Add save indicator.
And improve persistence loop error handling.
This commit is contained in:
parent
9755516178
commit
1b598e2f6d
8 changed files with 414 additions and 254 deletions
|
@ -158,7 +158,7 @@
|
|||
|
||||
(defmethod ptk/handle-error :validation
|
||||
[error]
|
||||
(js/console.error (if (map? error) (pr-str error) error))
|
||||
(js/console.error "handle-error(validation):" (if (map? error) (pr-str error) error))
|
||||
(when-let [explain (:explain error)]
|
||||
(println "============ SERVER RESPONSE ERROR ================")
|
||||
(println explain)
|
||||
|
@ -179,7 +179,8 @@
|
|||
(if (instance? ExceptionInfo error)
|
||||
(ptk/handle-error (ex-data error))
|
||||
(do
|
||||
(js/console.error (if (map? error) (pr-str error) error))
|
||||
(js/console.error "handle-error(default):"
|
||||
(if (map? error) (pr-str error) error))
|
||||
(ts/schedule 100 #(st/emit! (dm/show {:content "Something wrong has happened."
|
||||
:type :error
|
||||
:timeout 5000}))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue