Commit 9fd0c027 authored by Wang Yuan's avatar Wang Yuan Committed by Oran Agra
Browse files

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


(cherry picked from commit ea7eeb2f)
parent 0e581e00
...@@ -556,7 +556,8 @@ void loadServerConfig(char *filename, char *options) { ...@@ -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);
} }
} }
......
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