Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
9fd0c027
Commit
9fd0c027
authored
Aug 09, 2020
by
Wang Yuan
Committed by
Oran Agra
Sep 01, 2020
Browse files
Print error info if failed opening config file (#6943)
(cherry picked from commit
ea7eeb2f
)
parent
0e581e00
Changes
1
Show whitespace changes
Inline
Side-by-side
src/config.c
View file @
9fd0c027
...
@@ -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
);
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment