about summary refs log tree commit diff
path: root/src/state/session/agent.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/session/agent.ts')
-rw-r--r--src/state/session/agent.ts12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/state/session/agent.ts b/src/state/session/agent.ts
index 27e1af4c2..45013debc 100644
--- a/src/state/session/agent.ts
+++ b/src/state/session/agent.ts
@@ -53,7 +53,17 @@ export async function createAgentAndResume(
     agent.session = prevSession
     if (!storedAccount.deactivated) {
       // Intentionally not awaited to unblock the UI:
-      networkRetry(3, () => agent.resumeSession(prevSession))
+      networkRetry(3, () => agent.resumeSession(prevSession)).catch(
+        (e: any) => {
+          logger.error(`networkRetry failed to resume session`, {
+            status: e?.status || 'unknown',
+            // this field name is ignored by Sentry scrubbers
+            safeMessage: e?.message || 'unknown',
+          })
+
+          throw e
+        },
+      )
     }
   }