parent
75b6489f8d
commit
ee76f1c0e8
|
@ -3,14 +3,15 @@ import { NotAcceptableError, NotFoundError } from 'routing-controllers';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Error to throw when no username or email is set
|
* Error to throw when no username or email is set.
|
||||||
|
* We somehow need to identify you :)
|
||||||
*/
|
*/
|
||||||
export class UsernameOrEmailNeededError extends NotFoundError {
|
export class UsernameOrEmailNeededError extends NotFoundError {
|
||||||
@IsString()
|
@IsString()
|
||||||
name = "UsernameOrEmailNeededError"
|
name = "UsernameOrEmailNeededError"
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "no username or email is set!"
|
message = "No username or email is set!"
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,5 +34,5 @@ export class UserIdsNotMatchingError extends NotAcceptableError {
|
||||||
name = "UserIdsNotMatchingError"
|
name = "UserIdsNotMatchingError"
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
message = "The id's don't match!! \n And if you wanted to change a user's id: This isn't allowed"
|
message = "The ids don't match!! \n And if you wanted to change a user's id: This isn't allowed!"
|
||||||
}
|
}
|
Loading…
Reference in New Issue