X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-setup.c;h=5ec176d372a74e9b65c31846dc33fbe7ed95d22c;hp=d06fbf80e6aac2e41e80f13abcbf7606f92a9440;hb=de4be1b2293699e45d42b6f395b16d854151a58f;hpb=91d1d3f043b82d5f3f8c04f2db71a829a7406131 diff --git a/notmuch-setup.c b/notmuch-setup.c index d06fbf80..5ec176d3 100644 --- a/notmuch-setup.c +++ b/notmuch-setup.c @@ -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; + } }