Commit c9d86c2b authored by antirez's avatar antirez
Browse files

CG: More specific duplicated group error.

parent 9f60a6bc
......@@ -1391,7 +1391,8 @@ NULL
if (cg) {
addReply(c,shared.ok);
} else {
addReplyError(c,"Consumer Group name already exists");
addReplySds(c,
sdsnew("-BUSYGROUP Consumer Group name already exists\r\n"));
}
} else if (!strcasecmp(opt,"SETID") && c->argc == 5) {
} else if (!strcasecmp(opt,"DELGROUP") && c->argc == 4) {
......
start_server {
tags {"stream"}
} {
test {XGROUP CREATE: creation and duplicate group name detection} {
r DEL mystream
r XADD mystream * foo bar
r XGROUP CREATE mystream mygroup $
catch {r XGROUP CREATE mystream mygroup $} err
set err
} {BUSYGROUP*}
}
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