mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix(desktop): preserve non-Error OAuth load failures
This commit is contained in:
parent
ca7659a86c
commit
a3618c2b22
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue