mirror of https://codeberg.org/cage/tinmop/
- [kami] prevented landing on the debugger if communicating with a kami
server fails.
This commit is contained in:
parent
2b416820a1
commit
4a9e41a307
|
@ -2983,18 +2983,14 @@ printed, on the main window."
|
||||||
(open-attach-window:open-attachment avatar-url)))
|
(open-attach-window:open-attachment avatar-url)))
|
||||||
|
|
||||||
(defmacro with-notify-kami-error (&body body)
|
(defmacro with-notify-kami-error (&body body)
|
||||||
`(handler-bind ((purgatory:9p-error
|
`(with-notify-errors
|
||||||
|
(handler-bind ((purgatory:9p-error
|
||||||
(lambda (e)
|
(lambda (e)
|
||||||
(ui:notify (format nil (_ "Error: ~a") e)
|
(ui:notify (format nil (_ "Error: ~a") e)
|
||||||
:life (* (swconf:config-notification-life) 5)
|
:life (* (swconf:config-notification-life) 5)
|
||||||
:as-error t)
|
:as-error t)
|
||||||
(invoke-restart 'purgatory:ignore-error e)))
|
(invoke-restart 'purgatory:ignore-error e))))
|
||||||
(error
|
,@body)))
|
||||||
(lambda (e)
|
|
||||||
(ui:notify (format nil (_ "Error: ~a") e)
|
|
||||||
:life (* (swconf:config-notification-life) 5)
|
|
||||||
:as-error t))))
|
|
||||||
,@body))
|
|
||||||
|
|
||||||
(defun open-file-explorer (&optional (root "/"))
|
(defun open-file-explorer (&optional (root "/"))
|
||||||
(with-enqueued-process ()
|
(with-enqueued-process ()
|
||||||
|
|
Loading…
Reference in New Issue