mirror of https://codeberg.org/cage/tinmop/
- fixed test for conditional macro call.
This commit is contained in:
parent
e255f87eaf
commit
c613cefa13
|
@ -503,20 +503,22 @@ latter has a length equals to `total-size'"))
|
|||
|
||||
(defmacro with-notify-errors (&body body)
|
||||
#+(or debug-mode debug-tui-errors) `(progn ,@body)
|
||||
#-debug-mode `(handler-case
|
||||
(progn
|
||||
,@body)
|
||||
(error (e)
|
||||
(ui:notify (format nil (_ "Error: ~a") e)
|
||||
:life (* (swconf:config-notification-life) 5)
|
||||
:as-error t)
|
||||
nil)))
|
||||
#-(or debug-mode debug-tui-errors)
|
||||
`(handler-case
|
||||
(progn
|
||||
,@body)
|
||||
(error (e)
|
||||
(ui:notify (format nil (_ "Error: ~a") e)
|
||||
:life (* (swconf:config-notification-life) 5)
|
||||
:as-error t)
|
||||
nil)))
|
||||
|
||||
(defmacro with-print-error-message (&body body)
|
||||
#+debug-mode `(progn ,@body)
|
||||
#-debug-mode `(handler-case
|
||||
(progn
|
||||
,@body)
|
||||
(error (e)
|
||||
(ui:error-message (format nil (_ "Error: ~a") e))
|
||||
nil)))
|
||||
#+(or debug-mode debug-tui-errors) `(progn ,@body)
|
||||
#-(or debug-mode debug-tui-errors)
|
||||
`(handler-case
|
||||
(progn
|
||||
,@body)
|
||||
(error (e)
|
||||
(ui:error-message (format nil (_ "Error: ~a") e))
|
||||
nil)))
|
||||
|
|
Loading…
Reference in New Issue