mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
modify notmuch_setup_command to return 1 if config file write fails.
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.
This commit is contained in:
parent
5c5727ab52
commit
34c840a23e
1 changed files with 7 additions and 6 deletions
|
@ -156,10 +156,11 @@ notmuch_setup_command (unused (void *ctx),
|
||||||
notmuch_config_set_database_path (config, absolute_path);
|
notmuch_config_set_database_path (config, absolute_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
notmuch_config_save (config);
|
if (! notmuch_config_save (config)) {
|
||||||
|
if (is_new)
|
||||||
if (is_new)
|
welcome_message_post_setup ();
|
||||||
welcome_message_post_setup ();
|
return 0;
|
||||||
|
} else {
|
||||||
return 0;
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue