Skip to content

Commit

Permalink
chore: fix GETKEYS test
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Aug 21, 2023
1 parent b8dde95 commit c171794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export async function command(_subcommand, ...args) {
const { getKeyIndexes, exists } = await import('@ioredis/commands')
const [cmd, ...subArgs] = args
if (!exists(cmd)) {
throw new Error('ERR Invalid command specified')
throw new Error('ERR wrong number of arguments for \'command|getkeys\' command')
}

return getKeyIndexes(cmd, subArgs).map(i => subArgs[i])
Expand Down

0 comments on commit c171794

Please sign in to comment.