]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-setup.c
notmuch.el: Implement our own notmuch-help instead of describe-mode.
[notmuch] / notmuch-setup.c
index d06fbf80e6aac2e41e80f13abcbf7606f92a9440..5ec176d372a74e9b65c31846dc33fbe7ed95d22c 100644 (file)
@@ -156,10 +156,11 @@ notmuch_setup_command (unused (void *ctx),
        notmuch_config_set_database_path (config, absolute_path);
     }
 
-    notmuch_config_save (config);
-
-    if (is_new)
-       welcome_message_post_setup ();
-
-    return 0;
+    if (! notmuch_config_save (config)) {
+       if (is_new)
+         welcome_message_post_setup ();
+       return 0;
+    } else {
+       return 1;
+    }
 }