Unverified Commit ea7eeb2f authored by Wang Yuan's avatar Wang Yuan Committed by GitHub
Browse files

Print error info if failed opening config file (#6943)

parent 3f67b033
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment