YARN-6169 message on empty configuration file improved (#4952)

This commit is contained in:
Riya Khandelwal 2022-10-04 09:01:06 +05:30 committed by GitHub
parent 4891bf5049
commit 07581f1ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -546,8 +546,8 @@ int read_config(const char *file_path, struct configuration *cfg) {
if (cfg->size == 0) {
free_configuration(cfg);
fprintf(ERRORFILE, "Invalid configuration provided in %s\n", file_path);
return INVALID_CONFIG_FILE;
fprintf(ERRORFILE, "Empty configuration file provided %s\n", file_path);
exit(INVALID_CONFIG_FILE);
}
return 0;
}