This fixes a small bug in notmuch_setup_command such that it returned
OK and output the setup message footer even if the config file write
step failed.
notmuch_config_set_database_path (config, absolute_path);
}
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;
+ }