mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
emacs: Honor debug-on-error for part renderers
Previously, even if debug-on-error was non-nil, the debugger would not trap on part renderer errors. This made debugging part renderer bugs frustrating, so let the debugger trap these errors.
This commit is contained in:
parent
2d024ff48c
commit
1ada97e05b
1 changed files with 4 additions and 1 deletions
|
@ -785,7 +785,10 @@ message at DEPTH in the current thread."
|
||||||
(while (and handlers
|
(while (and handlers
|
||||||
(not (condition-case err
|
(not (condition-case err
|
||||||
(funcall (car handlers) msg part content-type nth depth button)
|
(funcall (car handlers) msg part content-type nth depth button)
|
||||||
(error (progn
|
;; Specifying `debug' here lets the debugger
|
||||||
|
;; run if `debug-on-error' is non-nil.
|
||||||
|
((debug error)
|
||||||
|
(progn
|
||||||
(insert "!!! Bodypart insert error: ")
|
(insert "!!! Bodypart insert error: ")
|
||||||
(insert (error-message-string err))
|
(insert (error-message-string err))
|
||||||
(insert " !!!\n") nil)))))
|
(insert " !!!\n") nil)))))
|
||||||
|
|
Loading…
Reference in a new issue