Skip to content

Commit 8e63aaf

Browse files
committed
Fixed a bug where simple error and error error plugins would be added.
1 parent fd59c33 commit 8e63aaf

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/browser/src/BrowserExceptionlessClient.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ export class BrowserExceptionlessClient extends ExceptionlessClient {
2020
config.addPlugin(new BrowserModuleInfoPlugin());
2121
config.addPlugin(new BrowserRequestInfoPlugin());
2222
config.addPlugin(new BrowserWrapFunctions());
23-
24-
config.removePlugin(new SimpleErrorPlugin());
2523
config.addPlugin(new BrowserErrorPlugin());
2624
}
2725

2826
await super.startup(configurationOrApiKey);
27+
if (configurationOrApiKey) {
28+
config.removePlugin(new SimpleErrorPlugin());
29+
}
2930
}
3031
}

packages/node/src/NodeExceptionlessClient.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ export class NodeExceptionlessClient extends ExceptionlessClient {
3838
config.addPlugin(new NodeLifeCyclePlugin());
3939
config.addPlugin(new NodeRequestInfoPlugin());
4040
config.addPlugin(new NodeWrapFunctions());
41-
42-
config.removePlugin(new SimpleErrorPlugin());
4341
config.addPlugin(new NodeErrorPlugin());
4442
}
4543

4644
await super.startup(configurationOrApiKey);
45+
46+
if (configurationOrApiKey) {
47+
config.removePlugin(new SimpleErrorPlugin());
48+
}
4749
}
4850
}

0 commit comments

Comments
 (0)