Print error info if failed opening config file (#6943)
This commit is contained in:
parent
3f67b03378
commit
ea7eeb2fd2
@ -556,7 +556,8 @@ void loadServerConfig(char *filename, char *options) {
|
||||
} else {
|
||||
if ((fp = fopen(filename,"r")) == NULL) {
|
||||
serverLog(LL_WARNING,
|
||||
"Fatal error, can't open config file '%s'", filename);
|
||||
"Fatal error, can't open config file '%s': %s",
|
||||
filename, strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user