aboutsummaryrefslogtreecommitdiff
path: root/notmuch.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2023-09-15 09:50:02 -0300
committerDavid Bremner <david@tethera.net>2023-09-23 08:26:40 -0300
commitdbb5ff338511bfa6718ed144b95a689809d4bea1 (patch)
tree1cddeb2de90c3823981a1c207a9dd3c8c738f85d /notmuch.c
parent112c53535a569ba28a2a7f3baae7fcc4033c65bc (diff)
CLI: exit with error when load_config returns an error.
For now print a generic error message and exit with error on any non-success code. Previously the code exited, but with exit code zero, leading users / scripts to think the command had succeeded.
Diffstat (limited to 'notmuch.c')
-rw-r--r--notmuch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/notmuch.c b/notmuch.c
index 37286b8f..69a18131 100644
--- a/notmuch.c
+++ b/notmuch.c
@@ -584,6 +584,8 @@ main (int argc, char *argv[])
case NOTMUCH_STATUS_SUCCESS:
break;
default:
+ fputs ("Error: unable to load config file.\n", stderr);
+ ret = 1;
goto DONE;
}