1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-25 09:03:28 +00:00

Update error message

This commit is contained in:
Bernd Schoolmann
2025-10-29 16:22:30 +01:00
parent 83b1195525
commit 4fbada8340

View File

@@ -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;
}