mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-31 22:01:47 +01:00
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.
This commit is contained in:
parent
14aef58b61
commit
e63aa66de8
1 changed files with 1 additions and 1 deletions
|
@ -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")))
|
||||
|
|
Loading…
Reference in a new issue