aboutsummaryrefslogtreecommitdiff
path: root/lib/database.cc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-06-10 07:58:44 +0200
committerDavid Bremner <david@tethera.net>2015-06-12 07:34:47 +0200
commitb59ad1a9cc6ea03764b1cd3d038920581ac5a9c4 (patch)
treedbd75a59ebd84685fdb67c14c116ff29e2862531 /lib/database.cc
parenta5a21bbe78725db70153b6bf59c1856de2dcae4d (diff)
lib: add NOTMUCH_STATUS_PATH_ERROR
The difference with FILE_ERROR is that this is for things that are wrong with the path before looking at the disk. Add some 3 tests; two broken as a reminder to actually use this new code.
Diffstat (limited to 'lib/database.cc')
-rw-r--r--lib/database.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/database.cc b/lib/database.cc
index 78a24f7e..e726f629 100644
--- a/lib/database.cc
+++ b/lib/database.cc
@@ -342,6 +342,8 @@ notmuch_status_to_string (notmuch_status_t status)
return "Unsupported operation";
case NOTMUCH_STATUS_UPGRADE_REQUIRED:
return "Operation requires a database upgrade";
+ case NOTMUCH_STATUS_PATH_ERROR:
+ return "Path supplied is illegal for this function";
default:
case NOTMUCH_STATUS_LAST_STATUS:
return "Unknown error status value";