From: Carl Worth Date: Tue, 5 Jan 2010 23:01:58 +0000 (-0800) Subject: Add missing comment for NOTMUCH_STATUS_READONLY_DATABASE. X-Git-Tag: 0.1~183 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=3f32fd8a1c06d417bdcb467bac2805f658cb5476 Add missing comment for NOTMUCH_STATUS_READONLY_DATABASE. And adjust the string representation of the same to match. --- diff --git a/lib/database.cc b/lib/database.cc index 510d13cb..205d0360 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -199,7 +199,7 @@ notmuch_status_to_string (notmuch_status_t status) case NOTMUCH_STATUS_OUT_OF_MEMORY: return "Out of memory"; case NOTMUCH_STATUS_READONLY_DATABASE: - return "The database is read-only"; + return "Attempt to write to a read-only database"; case NOTMUCH_STATUS_XAPIAN_EXCEPTION: return "A Xapian exception occurred"; case NOTMUCH_STATUS_FILE_ERROR: diff --git a/lib/notmuch.h b/lib/notmuch.h index 13efd5db..d9fe152a 100644 --- a/lib/notmuch.h +++ b/lib/notmuch.h @@ -57,6 +57,9 @@ typedef int notmuch_bool_t; * value. Instead we should map to things like DATABASE_LOCKED or * whatever. * + * NOTMUCH_STATUS_READONLY_DATABASE: An attempt was made to write to a + * database opened in read-only mode. + * * NOTMUCH_STATUS_XAPIAN_EXCEPTION: A Xapian exception occurred * * NOTMUCH_STATUS_FILE_ERROR: An error occurred trying to read or