1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-02 18:17:46 +01:00

Log key when no active user found (#8326)

This commit is contained in:
Matt Gibson 2024-03-13 16:21:33 -05:00 committed by GitHub
parent 25f89e2a1c
commit d28634b068
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -173,7 +173,9 @@ export class DefaultActiveUserState<T> implements ActiveUserState<T> {
), ),
); );
if (userId == null) { if (userId == null) {
throw new Error("No active user at this time."); throw new Error(
`Error storing ${this.keyDefinition.fullName} for the active user: No active user at this time.`,
);
} }
const fullKey = this.keyDefinition.buildKey(userId); const fullKey = this.keyDefinition.buildKey(userId);
return [ return [