diff options
author | Carl Worth <cworth@cworth.org> | 2010-01-05 15:01:58 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-01-06 10:32:06 -0800 |
commit | 3f32fd8a1c06d417bdcb467bac2805f658cb5476 (patch) | |
tree | cf79f5921458069ce890c054c7a83ab018a019a8 | |
parent | d807e28f43579ecc91aa40ae3e42760991c2f810 (diff) |
Add missing comment for NOTMUCH_STATUS_READONLY_DATABASE.
And adjust the string representation of the same to match.
-rw-r--r-- | lib/database.cc | 2 | ||||
-rw-r--r-- | lib/notmuch.h | 3 |
2 files changed, 4 insertions, 1 deletions
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 |