Skip to content

Commit

Permalink
Match COMMAND UNKNOWN error message and expected test result.
Browse files Browse the repository at this point in the history
  • Loading branch information
prvyk authored and prvyk committed Feb 1, 2025
1 parent 6a084cc commit ffb794a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/server/Resp/Parser/RespCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ private RespCommand SlowParseCommand(ref int count, ref ReadOnlySpan<byte> speci
return RespCommand.COMMAND_GETKEYSANDFLAGS;
}

string errMsg = string.Format(CmdStrings.GenericErrUnknownSubCommand,
string errMsg = string.Format(CmdStrings.GenericErrUnknownSubCommandNoHelp,
Encoding.UTF8.GetString(subCommand),
nameof(RespCommand.COMMAND));
specificErrorMsg = Encoding.UTF8.GetBytes(errMsg);
Expand Down
2 changes: 1 addition & 1 deletion test/Garnet.test/RespCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public void CommandUnknownSubcommandTest()
}
catch (RedisServerException e)
{
ClassicAssert.AreEqual("ERR unknown command", e.Message);
ClassicAssert.AreEqual("ERR unknown subcommand 'UNKNOWN'.", e.Message);
}
}

Expand Down

0 comments on commit ffb794a

Please sign in to comment.