diff --git a/src/command.c b/src/command.c index 3bffd76..0ba6505 100644 --- a/src/command.c +++ b/src/command.c @@ -42,6 +42,7 @@ const char *rep_timeout_err = "-ERR Proxy timed out\r\n"; const char *rep_slowlog_not_enabled = "-ERR Slowlog not enabled\r\n"; const char *rep_config_err = "-ERR Config error\r\n"; +const char *rep_config_unsupported_err = "-ERR Config cmd not supported\r\n"; const char *rep_config_parse_err = "-ERR Config fail to parse command\r\n"; const char *rep_config_addr_err = "-ERR Config fail to parse address\r\n"; @@ -508,7 +509,7 @@ int cmd_config(struct command *cmd, struct redis_data *data) } } } else { - cmd_mark_fail(cmd, rep_addr_err); + cmd_mark_fail(cmd, rep_config_unsupported_err); } } else if (strcasecmp(type, "GET") == 0) { if (strcasecmp(option, "NODE") == 0) {