Lua debugging: fix error message for SCRIPT DEBUG.

"async" -> "sync".

Thanks to Itamar Haber for reporting.
This commit is contained in:
antirez 2015-11-14 22:18:02 +01:00
parent 3d24cd6bf8
commit 34aadf79c3

View File

@ -1474,7 +1474,7 @@ void scriptCommand(client *c) {
addReply(c,shared.ok); addReply(c,shared.ok);
c->flags |= CLIENT_LUA_DEBUG_SYNC; c->flags |= CLIENT_LUA_DEBUG_SYNC;
} else { } else {
addReplyError(c,"Use SCRIPT DEBUG yes/async/no"); addReplyError(c,"Use SCRIPT DEBUG yes/sync/no");
} }
} else { } else {
addReplyError(c, "Unknown SCRIPT subcommand or wrong # of args."); addReplyError(c, "Unknown SCRIPT subcommand or wrong # of args.");