fourth batch of API cleanup for exception handling

Subject: fourth batch of API cleanup for exception handling

Date: Wed, 8 Jul 2020 21:16:59 -0300

To: notmuch@notmuchmail.org

Cc:

From: David Bremner


This continues

     id:20200705130025.4057292-1-david@tethera.net

and probably needs to be applied on top of it.

There are a couple cases here where we use the NULL returns from
previous API changes and convert it back into
NOTMUCH_STATUS_XAPIAN_EXCEPTION. It isn't the most lovely error path,
but it works.

I guess an enhancement would be to have some kind of errno set as
Floris mentioned. We'd still want the NULL returns to signal an error
however, so I think that could be done incrementally.

This completes (I think) the changes needed for message.cc

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: