mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 19:47:03 -04:00
Change error types in checkLocalPassword and updateLocalPassword to InvalidCredentialsError and NoLocalIdentityError
Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
f39315ea7b
commit
b562a5dac7
4 changed files with 38 additions and 15 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue