Skip to content

Commit 2cfa1cb

Browse files
committed
Stop erasing ErrorReply stack
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.
1 parent 2f10632 commit 2cfa1cb

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/client/lib/errors.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@ export class ReconnectStrategyError extends Error {
6363
}
6464
}
6565

66-
export class ErrorReply extends Error {
67-
constructor(message: string) {
68-
super(message);
69-
this.stack = undefined;
70-
}
71-
}
66+
export class ErrorReply extends Error {}
7267

7368
export class SimpleError extends ErrorReply {}
7469

0 commit comments

Comments
 (0)