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
1 changed files with 3 additions and 1 deletions

View File

@ -173,7 +173,9 @@ export class DefaultActiveUserState<T> implements ActiveUserState<T> {
),
);
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);
return [