diff options
author | David Bremner <david@tethera.net> | 2016-11-27 23:01:42 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2016-12-07 07:00:40 -0400 |
commit | d74c5345704136611f993ca38e0d035b1da798b6 (patch) | |
tree | a9d5383e410994bb0261d704fe1a102f9639e1d7 /notmuch-client.h | |
parent | 9259b97fa2659ae6b6dbcd49b04db087e64036ad (diff) |
cli/insert: return EX_TEMPFAIL for some errors
Attempt to distinguish between errors indicating misconfiguration or
programmer error, which we consider "permanent", in the sense that
automatic retries are unlikely to be useful, and those indicating
transient error conditions. We consider XAPIAN_EXCEPTION transient
because it covers the important special case of locking failure.
Diffstat (limited to 'notmuch-client.h')
-rw-r--r-- | notmuch-client.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/notmuch-client.h b/notmuch-client.h index 793f32ec..d026e600 100644 --- a/notmuch-client.h +++ b/notmuch-client.h @@ -489,6 +489,9 @@ print_status_database (const char *loc, const notmuch_database_t *database, notmuch_status_t status); +int +status_to_exit (notmuch_status_t status); + #include "command-line-arguments.h" extern char *notmuch_requested_db_uuid; |