lib: add return status to database close and destroy
authorJani Nikula <jani@nikula.org>
Wed, 16 Apr 2014 12:59:16 +0000 (22:59 +1000)
committerDavid Bremner <david@tethera.net>
Wed, 9 Jul 2014 23:29:36 +0000 (20:29 -0300)
commitab24e883b008b3fe2e211d87c6c88ec2aa01bdc0
tree2597ec62311fd5010b917f95707180911ca41c28
parent6721222ea8e3e8c0de15c5ae6f3ae0e388676c2a
lib: add return status to database close and destroy

notmuch_database_close may fail in Xapian ->flush() or ->close(), so
report the status. Similarly for notmuch_database_destroy which calls
close.

This is required for notmuch insert to report error status if message
indexing failed.
lib/database.cc
lib/notmuch.h