diff options
| author | David Bremner <david@tethera.net> | 2022-12-27 13:08:47 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2023-02-20 09:22:32 -0400 |
| commit | 09f2ad8e853375930c63bca847f623bc722b9cc0 (patch) | |
| tree | c83851be016bd5ea542ac8b36f507b8068d5e83e /lib/notmuch.h | |
| parent | 4e6c6c8aac7f581448df525abd09b85c08358dd3 (diff) | |
lib: add better diagnostics for over long filenames.
Previously we just crashed with an internal error. With this change,
the caller can handle it better. Update notmuch-new so that it doesn't
crash with "unknown error code" because of this change.
Diffstat (limited to 'lib/notmuch.h')
| -rw-r--r-- | lib/notmuch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h index 0b0540b1..ce375c04 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -293,6 +293,8 @@ typedef struct _notmuch_indexopts notmuch_indexopts_t; * * NOTMUCH_STATUS_OUT_OF_MEMORY: Out of memory. * + * NOTMUCH_STATUS_PATH_ERROR: filename is too long + * * NOTMUCH_STATUS_FILE_ERROR: An error occurred trying to create the * database file (such as permission denied, or file not found, * etc.), or the database already exists. |
