Skip to content

Commit

Permalink
Modify "Invalid number of fields" message
Browse files Browse the repository at this point in the history
  • Loading branch information
moticless committed May 16, 2024
1 parent 6a757d4 commit 4d3ce35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/t_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -2721,7 +2721,7 @@ static void httlGenericCommand(client *c, const char *cmd, long long basetime, i

/* Read number of fields */
if (getRangeLongFromObjectOrReply(c, c->argv[numFieldsAt], 1, LONG_MAX,
&numFields, "Parameter `numFileds` should be greater than 0") != C_OK)
&numFields, "Invalid number of fields parameter") != C_OK)
return;

/* Verify `numFields` is consistent with number of arguments */
Expand Down Expand Up @@ -2965,7 +2965,7 @@ void hpersistCommand(client *c) {

/* Read number of fields */
if (getRangeLongFromObjectOrReply(c, c->argv[numFieldsAt], 1, LONG_MAX,
&numFields, "Parameter `numFileds` should be greater than 0") != C_OK)
&numFields, "Invalid number of fields parameter") != C_OK)
return;

/* Verify `numFields` is consistent with number of arguments */
Expand Down

0 comments on commit 4d3ce35

Please sign in to comment.