aboutsummaryrefslogtreecommitdiff
path: root/lib/open.cc
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-01-03 08:30:46 -0400
committerDavid Bremner <david@tethera.net>2021-02-06 19:43:11 -0400
commiteea258c0c9386a5eecae48a98b552113a3584a7d (patch)
tree767f2ce98ff1e91bd892df17c633a264e1c9ea2a /lib/open.cc
parent1f860a6c41aad8b6d2350c439b39aa0692597a79 (diff)
lib: add NOTMUCH_STATUS_NO_CONFIG
This will allow client code to provide more meaningful diagnostics. In particular it will enable "notmuch new" to continue suggsting the user run "notmuch setup" to create a config after "notmuch new" is transitioned to the new configuration framework.
Diffstat (limited to 'lib/open.cc')
-rw-r--r--lib/open.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/open.cc b/lib/open.cc
index 6e8e0f6f..06d079e4 100644
--- a/lib/open.cc
+++ b/lib/open.cc
@@ -106,7 +106,7 @@ _load_key_file (const char *path,
*key_file = g_key_file_new ();
if (! g_key_file_load_from_file (*key_file, path, G_KEY_FILE_NONE, NULL)) {
- status = NOTMUCH_STATUS_FILE_ERROR;
+ status = NOTMUCH_STATUS_NO_CONFIG;
}
DONE: