You've already forked node-redis
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:
@@ -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 {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user