Skip to content

When capturing already captured Error ref session should be still updated #14752

@krystofwoldrich

Description

@krystofwoldrich
try {
  thisFunDoesNotExist();
} catch (error) {
  Sentry.captureException(error);
  throw error; // assume this is not catch anywhere else until global error handler
}

The example above shows code snippet which causes the session not being marked as crashed.

But the error reached the global handler and the session should be marked as crashed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPackage: browserIssues related to the Sentry Browser SDK

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions