diff options
author | Austin Clements <amdragon@MIT.EDU> | 2014-04-18 18:57:17 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2014-04-19 13:08:30 +0900 |
commit | 1ada97e05b5385ef242b19c0d5903628a97e06fe (patch) | |
tree | d57c2f2658137466e58854d3ad27ca9d91e9e5fc /emacs | |
parent | 2d024ff48c74f96dd3888de7161c964e61163369 (diff) |
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.
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/notmuch-show.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index f6ca827e..df10d4ba 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -785,7 +785,10 @@ message at DEPTH in the current thread." (while (and handlers (not (condition-case err (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 (error-message-string err)) (insert " !!!\n") nil))))) |