We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8dde95 commit c171794Copy full SHA for c171794
src/commands/command.js
@@ -78,7 +78,7 @@ export async function command(_subcommand, ...args) {
78
const { getKeyIndexes, exists } = await import('@ioredis/commands')
79
const [cmd, ...subArgs] = args
80
if (!exists(cmd)) {
81
- throw new Error('ERR Invalid command specified')
+ throw new Error('ERR wrong number of arguments for \'command|getkeys\' command')
82
}
83
84
return getKeyIndexes(cmd, subArgs).map(i => subArgs[i])
0 commit comments