Skip to content

Commit a5caabd

Browse files
lukas-reinekecgsimmons
authored andcommitted
NO-TICKET remove sentry, doesn't work
1 parent 0159505 commit a5caabd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/index.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ export class AdgoError extends Error {
7171

7272
this.code = (error as AdgoError).code || (data.code as string) || code;
7373
this.name = (error as AdgoError).name || 'AdgoError';
74-
this.data = merge(
75-
{ skipSentry: false },
76-
(error as AdgoError).data,
77-
data,
78-
);
74+
this.data = merge({}, (error as AdgoError).data, data);
7975

8076
if ((error as AdgoError).stack) {
8177
this.stack = (error as AdgoError).stack;
@@ -88,7 +84,7 @@ export class LocalError extends AdgoError {
8884
error: AdgoError | Error | string,
8985
data: Record<string, unknown> = {},
9086
) {
91-
super(error, { skipSentry: true, ...data }, 'local_error');
87+
super(error, data, 'local_error');
9288
this.name = 'LocalError';
9389
}
9490
}

0 commit comments

Comments
 (0)