mirror of
https://github.com/Eugeny/tabby.git
synced 2026-08-24 10:14:31 -05:00
handle keytar password load errors
This commit is contained in:
@@ -48,7 +48,12 @@ export class PasswordStorageService {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
const key = this.getKeytarKeyForConnection(profile)
|
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