Print error info if failed opening config file (#6943)
(cherry picked from commit ea7eeb2fd2e7a73d951f394d5d14a5ba5a75d4b2)
This commit is contained in:
parent
0e581e0044
commit
9fd0c027e7
@ -556,7 +556,8 @@ void loadServerConfig(char *filename, char *options) {
|
|||||||
} else {
|
} else {
|
||||||
if ((fp = fopen(filename,"r")) == NULL) {
|
if ((fp = fopen(filename,"r")) == NULL) {
|
||||||
serverLog(LL_WARNING,
|
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);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user