Change error types in checkLocalPassword and updateLocalPassword to InvalidCredentialsError and NoLocalIdentityError

Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
Yannick Bungers 2022-01-06 21:59:46 +01:00 committed by David Mehren
parent f39315ea7b
commit b562a5dac7
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
4 changed files with 38 additions and 15 deletions

View file

@ -43,3 +43,11 @@ export class MediaBackendError extends Error {
export class PrimaryAliasDeletionForbiddenError extends Error {
name = 'PrimaryAliasDeletionForbiddenError';
}
export class InvalidCredentialsError extends Error {
name = 'InvalidCredentialsError';
}
export class NoLocalIdentityError extends Error {
name = 'NoLocalIdentityError';
}