SUPPORT-8941. Добавлена обязательность настройки main:cp_name
This commit is contained in:
parent
051b555c61
commit
89289a3d81
1 changed files with 5 additions and 0 deletions
|
|
@ -77,6 +77,11 @@ main_conf_load(main_conf_t* conf, const char *filename, const conf_file_context_
|
|||
goto error;
|
||||
}
|
||||
|
||||
if (conf->cp_name[0] == '\0') {
|
||||
LOG_ERROR(MAIN_CONF_SECTION ":" MAIN_CONF_KEY_CP_NAME " is required");
|
||||
goto error;
|
||||
}
|
||||
|
||||
conf->conf_file = copy_filename(filename);
|
||||
if (NULL == conf->conf_file) {
|
||||
LOG_ERROR("could not copy config filename, %s", filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue