fix(desktop): preserve non-Error OAuth load failures

This commit is contained in:
Doud-FR 2026-07-29 09:12:49 +02:00 committed by Austin Pickett
parent ca7659a86c
commit a3618c2b22

View file

@ -6282,8 +6282,10 @@ function _loadNativeTokens(baseUrl: string): NativeTokenSet | null {
return tokens
} catch (error) {
const detail = error instanceof Error ? error.message : String(error)
rememberLog(
`[native-oauth] failed to load stored tokens for ${baseUrl}: ${(error as Error).message}`
`[native-oauth] failed to load stored tokens for ${baseUrl}: ${detail}`
)
return null