aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/notmuch.el')
-rw-r--r--emacs/notmuch.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 63387a2d..c98a4feb 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -654,11 +654,14 @@ of the result."
;; showing the search buffer
(when (or (= exit-status 20) (= exit-status 21))
(kill-buffer))
- (condition-case nil
+ (condition-case err
(notmuch-check-async-exit-status proc msg)
;; Suppress the error signal since strange
- ;; things happen if a sentinel signals.
- (error (throw 'return nil)))
+ ;; things happen if a sentinel signals. Mimic
+ ;; the top-level's handling of error messages.
+ (error
+ (message "%s" (second err))
+ (throw 'return nil)))
(if (and atbob
(not (string= notmuch-search-target-thread "found")))
(set 'never-found-target-thread t)))))