mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
emacs/notmuch-show.el: handle bodypart insert error
When inserting of email bodypart failes, insert a failure message to the buffer (and continue) instead of halting the insertion of the rest of that email thread in question.
This commit is contained in:
parent
96864a9aea
commit
7c6ac9fbae
1 changed files with 6 additions and 1 deletions
|
@ -815,7 +815,12 @@ message at DEPTH in the current thread."
|
|||
;; Run the content handlers until one of them returns a non-nil
|
||||
;; value.
|
||||
(while (and handlers
|
||||
(not (funcall (car handlers) msg part content-type nth depth declared-type)))
|
||||
(not (condition-case err
|
||||
(funcall (car handlers) msg part content-type nth depth declared-type)
|
||||
(error (progn
|
||||
(insert "!!! Bodypart insert error: ")
|
||||
(insert (error-message-string err))
|
||||
(insert " !!!\n") nil)))))
|
||||
(setq handlers (cdr handlers))))
|
||||
t)
|
||||
|
||||
|
|
Loading…
Reference in a new issue