mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 16:23:36 +00:00
Capture session data with Sentry TypeError in SessionManager
This commit is contained in:
1 file changed
+3
-1
@@ -658,7 +658,9 @@ export class SessionManager {
|
||||
|
||||
// Log unexpected TypeErrors to Sentry for investigation
|
||||
if (error instanceof TypeError) {
|
||||
getSentryInstance()?.captureException(error);
|
||||
getSentryInstance()?.captureException(error, {
|
||||
data: { session },
|
||||
});
|
||||
}
|
||||
|
||||
// Re-throw service errors to be handled at the UI level
|
||||
|
||||
Reference in new issue
Block a user