diff options
author | antirez <antirez@gmail.com> | 2020-02-27 18:21:12 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-03-05 12:51:14 +0100 |
commit | e3c1f43952e324ffc3c0d940130b1eda696708e2 (patch) | |
tree | ca213b76e194aad5cb1e6f21ec2641c88b945940 | |
parent | 141c0679a03795fc395ef8b03818902c8a8fe24a (diff) | |
download | redis-e3c1f43952e324ffc3c0d940130b1eda696708e2.tar.gz |
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.
-rw-r--r-- | src/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c index aeb2fea7e..fd04b7c87 100644 --- a/src/config.c +++ b/src/config.c @@ -518,7 +518,8 @@ void loadServerConfigFromString(char *config) { return; 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, ">>> '%s'\n", lines[i]); fprintf(stderr, "%s\n", err); |