Skip to content

Commit 8d73726

Browse files
committed
Fixed error data assert.
1 parent c51cc7b commit 8d73726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/core/src/plugins/default/SimpleErrorPlugin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class SimpleErrorPlugin implements IEventPlugin {
4545
const exclusions = context.client.config.dataExclusions.concat(IgnoredErrorProperties);
4646
const additionalData = stringify(exception, exclusions);
4747
if (!isEmpty(additionalData)) {
48-
(error.data as Record<string, unknown>)["@ext"] = JSON.parse(additionalData);
48+
error.data!["@ext"] = JSON.parse(additionalData);
4949
}
5050

5151
context.event.data[KnownEventDataKeys.SimpleError] = error;

0 commit comments

Comments
 (0)