diff options
Diffstat (limited to 'notmuch-setup.c')
-rw-r--r-- | notmuch-setup.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/notmuch-setup.c b/notmuch-setup.c index d06fbf8..5ec176d 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; + } } |