You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
add errors iterator to MultiErrorReply
This commit is contained in:
@@ -79,4 +79,10 @@ export class MultiErrorReply extends ErrorReply {
|
||||
this.replies = replies;
|
||||
this.errorIndexes = errorIndexes;
|
||||
}
|
||||
|
||||
*errors() {
|
||||
for (const index of this.errorIndexes) {
|
||||
yield this.replies[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user