mirror of
https://github.com/eugeny/tabby
synced 2026-09-22 21:15:58 +00:00
handle keytar password load errors
This commit is contained in:
@@ -48,7 +48,12 @@ export class PasswordStorageService {
|
||||
return null
|
||||
}
|
||||
const key = this.getKeytarKeyForConnection(profile)
|
||||
return keytar.getPassword(key, account)
|
||||
try {
|
||||
return await keytar.getPassword(key, account)
|
||||
} catch (e) {
|
||||
console.warn(`Failed to load stored password for ${account}@${profile.options.host}:${profile.options.port ?? 22}`, e)
|
||||
return null
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user