We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0159505 commit a5caabdCopy full SHA for a5caabd
1 file changed
src/index.ts
@@ -71,11 +71,7 @@ export class AdgoError extends Error {
71
72
this.code = (error as AdgoError).code || (data.code as string) || code;
73
this.name = (error as AdgoError).name || 'AdgoError';
74
- this.data = merge(
75
- { skipSentry: false },
76
- (error as AdgoError).data,
77
- data,
78
- );
+ this.data = merge({}, (error as AdgoError).data, data);
79
80
if ((error as AdgoError).stack) {
81
this.stack = (error as AdgoError).stack;
@@ -88,7 +84,7 @@ export class LocalError extends AdgoError {
88
84
error: AdgoError | Error | string,
89
85
data: Record<string, unknown> = {},
90
86
) {
91
- super(error, { skipSentry: true, ...data }, 'local_error');
87
+ super(error, data, 'local_error');
92
this.name = 'LocalError';
93
}
94
0 commit comments