]> git.notmuchmail.org Git - notmuch/commitdiff
Add missing comment for NOTMUCH_STATUS_READONLY_DATABASE.
authorCarl Worth <cworth@cworth.org>
Tue, 5 Jan 2010 23:01:58 +0000 (15:01 -0800)
committerCarl Worth <cworth@cworth.org>
Wed, 6 Jan 2010 18:32:06 +0000 (10:32 -0800)
And adjust the string representation of the same to match.

lib/database.cc
lib/notmuch.h

index 510d13cbcd8ff09972164603b8adfe32495af4e5..205d0360e1c2f07c79cb29b28b82a442b40f2384 100644 (file)
@@ -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:
index 13efd5db90b77e1cb1b49473665715423842cde8..d9fe152a0529206d2a780c06d03fc3091968a9cf 100644 (file)
@@ -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