mirror of
https://github.com/bitwarden/browser
synced 2026-01-06 10:33:57 +00:00
[PM-22090] Delete password on Windows desktop throws incorrect error (#15070)
* delete password on Windows desktop throws incorrect error * delete password on Windows desktop throws incorrect error * napi documentation improvements * napi documentation update * better logging verbosity * desktop native clippy errors * unit test coverage * napi TS documentation JS language friendly * fixing merge conflicts
This commit is contained in:
@@ -35,13 +35,13 @@ export class DesktopCredentialStorageListener {
|
||||
}
|
||||
return val;
|
||||
} catch (e) {
|
||||
if (
|
||||
e.message === "Password not found." ||
|
||||
e.message === "The specified item could not be found in the keychain."
|
||||
) {
|
||||
if (e instanceof Error && e.message === passwords.PASSWORD_NOT_FOUND) {
|
||||
if (message.action === "hasPassword") {
|
||||
return false;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
this.logService.info(e);
|
||||
this.logService.error("[Credential Storage Listener] %s failed", message.action, e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user