mirror of
https://github.com/bitwarden/browser
synced 2026-02-25 09:03:28 +00:00
Update error message
This commit is contained in:
@@ -84,7 +84,15 @@ export default class Domain {
|
||||
if (domain[prop] == null) {
|
||||
continue;
|
||||
}
|
||||
viewModel[prop] = await encryptService.decryptString(domain[prop]!, key!);
|
||||
try {
|
||||
viewModel[prop] = await encryptService.decryptString(domain[prop]!, key!);
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`Failed to decrypt property '${String(
|
||||
prop,
|
||||
)}' of domain. Context: ${objectContext}. Error: ${(e as Error).message}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
return viewModel as V;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user