aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Clements <amdragon@MIT.EDU>2013-05-17 16:14:28 -0400
committerDavid Bremner <bremner@debian.org>2013-05-18 07:50:11 -0300
commite63aa66de8d4de43ea9c3b660b951a44dc50bdeb (patch)
treec9b6df800cfa967f2a0416ec3627e4a68d4f575e
parent14aef58b61656e1fe19dee224515f066137594ed (diff)
emacs: Proper error string handling in search sentinel
Apparently Emacs provides a function to stringify errors properly. Use this in the search sentinel where we have to do our own error messaging, rather than assuming the first error argument will be the descriptive string.
-rw-r--r--emacs/notmuch.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index e58c51df..4c1a6cac 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -660,7 +660,7 @@ of the result."
;; things happen if a sentinel signals. Mimic
;; the top-level's handling of error messages.
(error
- (message "%s" (second err))
+ (message "%s" (error-message-string err))
(throw 'return nil)))
(if (and atbob
(not (string= notmuch-search-target-thread "found")))