1
0
mirror of https://github.com/bitwarden/server.git synced 2025-02-16 01:51:21 +01:00

Update vault out of sync error message in CipherService.cs

Suggested change to error message to reduce confusion for non-technical users.  Also if vault out of sync the changes cannot be saved so the error is misleading for the user.

See forum discussion at https://community.bitwarden.com/t/clearer-error-message-when-vault-is-out-of-sync/16154/8
This commit is contained in:
EDIflyer 2024-01-06 18:30:28 +00:00 committed by GitHub
parent c553ec6aa0
commit 9f6727dd65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1013,7 +1013,7 @@ public class CipherService : ICipherService
if ((cipher.RevisionDate - lastKnownRevisionDate.Value).Duration() > TimeSpan.FromSeconds(1))
{
throw new BadRequestException(
"The cipher you are updating is out of date. Please save your work, sync your vault, and try again."
"Your vault is out of sync & changes could not be saved. Please logout & back in to your vault and try again."
);
}
}