Commit 45f318d2 authored by antirez's avatar antirez
Browse files

Show Redis version when not understanding a config directive.

This makes simpler to give people help when posting such kind of errors
in the mailing list or other help forums, because sometimes the
directive looks well spelled, but the version of Redis they are using is
not able to support it.
parent 7e64aa80
...@@ -518,7 +518,8 @@ void loadServerConfigFromString(char *config) { ...@@ -518,7 +518,8 @@ void loadServerConfigFromString(char *config) {
return; return;
loaderr: loaderr:
fprintf(stderr, "\n*** FATAL CONFIG FILE ERROR ***\n"); fprintf(stderr, "\n*** FATAL CONFIG FILE ERROR (Redis %s) ***\n",
REDIS_VERSION);
fprintf(stderr, "Reading the configuration file, at line %d\n", linenum); fprintf(stderr, "Reading the configuration file, at line %d\n", linenum);
fprintf(stderr, ">>> '%s'\n", lines[i]); fprintf(stderr, ">>> '%s'\n", lines[i]);
fprintf(stderr, "%s\n", err); fprintf(stderr, "%s\n", err);
......
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