]> rtime.felk.cvut.cz Git - notmuch.git/commit
emacs: poll: return useful errors when poll fails.
authorMark Walters <markwalters1009@gmail.com>
Wed, 28 Oct 2015 18:28:39 +0000 (18:28 +0000)
committerDavid Bremner <david@tethera.net>
Mon, 23 Nov 2015 12:37:19 +0000 (08:37 -0400)
commit4c7a592d49266d588e717c232bc7aacbe4e16bfb
treecf203822a08b3f9ad3167ea21498cbfa15caf72a
parent3270eea39f048bc72df1f16bfa1300d7db169a1b
emacs: poll: return useful errors when poll fails.

Previously poll called from emacs would fail silently. This makes it
return a useful error message.

In the non-deprecated case of notmuch new and appropriate hooks, it
uses notmuch-call-notmuch-process which gives an error and
additionally puts the stdout/stderr etc in the *Notmuch errors*
buffer.

In the deprecated case of a custom poll script it only returns an
error message.

Commit based on a bug report, and a potential fix, by Ketil Malde.
emacs/notmuch-lib.el