YARN-6169 message on empty configuration file improved (#4952)
This commit is contained in:
parent
4891bf5049
commit
07581f1ab2
@ -546,8 +546,8 @@ int read_config(const char *file_path, struct configuration *cfg) {
|
|||||||
|
|
||||||
if (cfg->size == 0) {
|
if (cfg->size == 0) {
|
||||||
free_configuration(cfg);
|
free_configuration(cfg);
|
||||||
fprintf(ERRORFILE, "Invalid configuration provided in %s\n", file_path);
|
fprintf(ERRORFILE, "Empty configuration file provided %s\n", file_path);
|
||||||
return INVALID_CONFIG_FILE;
|
exit(INVALID_CONFIG_FILE);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user