Skip to content

Commit

Permalink
change error msg when config set unknow cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-joo committed Jan 4, 2017
1 parent 88f54f7 commit 378b093
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 378b093

Please sign in to comment.