Skip to content

Commit c171794

Browse files
committed
chore: fix GETKEYS test
1 parent b8dde95 commit c171794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/command.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export async function command(_subcommand, ...args) {
7878
const { getKeyIndexes, exists } = await import('@ioredis/commands')
7979
const [cmd, ...subArgs] = args
8080
if (!exists(cmd)) {
81-
throw new Error('ERR Invalid command specified')
81+
throw new Error('ERR wrong number of arguments for \'command|getkeys\' command')
8282
}
8383

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

0 commit comments

Comments
 (0)