1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-09 21:21:11 +03:00

fix: Stop erasing ErrorReply stack (#3050)

It was very difficult to debug `ErrorReply` errors due to `error.stack` being erased.
Given this restores standard JS Error behaviour, I have not added any tests.
This commit is contained in:
Arek W
2025-08-14 09:42:36 +02:00
committed by GitHub
parent 746e9b184b
commit 82847fb92c

View File

@@ -63,12 +63,7 @@ export class ReconnectStrategyError extends Error {
}
}
export class ErrorReply extends Error {
constructor(message: string) {
super(message);
this.stack = undefined;
}
}
export class ErrorReply extends Error {}
export class SimpleError extends ErrorReply {}