From 3f32fd8a1c06d417bdcb467bac2805f658cb5476 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 5 Jan 2010 15:01:58 -0800 Subject: [PATCH] Add missing comment for NOTMUCH_STATUS_READONLY_DATABASE. And adjust the string representation of the same to match. --- lib/database.cc | 2 +- lib/notmuch.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.26.2