1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

ref #1789 - reject "hanging" promises when closing connection

This commit is contained in:
leibale
2022-01-03 16:24:59 -05:00
parent 2203be5fbd
commit 7e2059b1cf
3 changed files with 29 additions and 8 deletions

View File

@@ -45,3 +45,14 @@ export class RootNodesUnavailableError extends Error {
super('All the root nodes are unavailable');
}
}
export class ReconnectStrategyError extends Error {
originalError: Error;
socketError: unknown;
constructor(originalError: Error, socketError: unknown) {
super(originalError.message);
this.originalError = originalError;
this.socketError = socketError;
}
}