Skip to content

Commit

Permalink
feat: [#802] new errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Jan 29, 2025
1 parent 1e992ba commit 8b90671
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ pub enum ServiceError {

#[display("Email is required")] //405j
EmailMissing,
#[display("A verified email is required")] //405j
VerifiedEmailMissing,
#[display("Please enter a valid email address")] //405j
EmailInvalid,

Expand Down Expand Up @@ -60,6 +62,9 @@ pub enum ServiceError {
#[display("Passwords don't match")]
PasswordsDontMatch,

#[display("Couldn't send new password to the user")]
FailedToSendResetPassword,

/// when the a username is already taken
#[display("Username not available")]
UsernameTaken,
Expand Down

0 comments on commit 8b90671

Please sign in to comment.