X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=emacs%2Fnotmuch-show.el;h=df10d4bad93b3936c00461194774cef4214725c1;hp=f6ca827e0525933fa8fc20a0e434f1bf9df58353;hb=cd8cb607332b143bd5403175bed5fabe0f793b9c;hpb=a673d618d1342a3f99e9d1d51807fc4dedb9ef61 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)))))