aboutsummaryrefslogtreecommitdiffhomepage
path: root/NEWS
diff options
context:
space:
mode:
authorGravatar Tomi Valkeinen <tomi.valkeinen@iki.fi>2013-11-19 07:10:31 +0200
committerGravatar David Bremner <david@tethera.net>2014-01-18 14:47:35 -0400
commit075d53dde5446fefe121e548156901cf72f7f8e3 (patch)
tree1d92f862716e05da29f159dbea447962db35c84b /NEWS
parent40a3bf7e68338d34d10ddc77f746af53ff6d3182 (diff)
lib: fix error handling
Currently if a Xapian exception happens in notmuch_message_get_header, the exception is not caught leading to crash. In notmuch_message_get_date the exception is caught, but an internal error is raised, again leading to crash. This patch fixes the error handling by making both functions catch the Xapian exceptions, print an error and return NULL or 0. The 'notmuch->exception_reported' is also set, as is done elsewhere, even if I don't really get the idea of that field. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@iki.fi>
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions