unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* fourth batch of API cleanup for exception handling
@ 2020-07-09  0:16 David Bremner
  2020-07-09  0:17 ` [PATCH 01/10] test: add regression test for notmuch_message_has_maildir_flag David Bremner
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: David Bremner @ 2020-07-09  0:16 UTC (permalink / raw)
  To: notmuch

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-07-20 12:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-09  0:16 fourth batch of API cleanup for exception handling David Bremner
2020-07-09  0:17 ` [PATCH 01/10] test: add regression test for notmuch_message_has_maildir_flag David Bremner
2020-07-09  0:17 ` [PATCH 02/10] lib: add notmuch_message_has_maildir_flag_st David Bremner
2020-07-09  0:17 ` [PATCH 03/10] test: add regression test for n_m_maildir_flags_to_tags David Bremner
2020-07-09  0:17 ` [PATCH 04/10] test: add broken test for n_m_remove_all_tags David Bremner
2020-07-09  0:17 ` [PATCH 05/10] lib: handle xapian exception in n_m_remove_all_tags David Bremner
2020-07-09  0:17 ` [PATCH 06/10] test: regression tests of n_m_freeze and n_m_thaw on closed db David Bremner
2020-07-09  0:17 ` [PATCH 07/10] test: regression test for destroying message with " David Bremner
2020-07-09  0:17 ` [PATCH 08/10] test: regression for retrieving closed db from message David Bremner
2020-07-09  0:17 ` [PATCH 09/10] test: add known broken test for n_m_reindex on closed db David Bremner
2020-07-09  0:17 ` [PATCH 10/10] lib: fix return value for n_m_reindex David Bremner
2020-07-20 12:14 ` fourth batch of API cleanup for exception handling David Bremner

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).