Browse Source

Add "username taken" error

master
Matt Baer 6 years ago
parent
commit
8cbd598abb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      errors/general.go

+ 1
- 0
errors/general.go View File

@@ -26,4 +26,5 @@ var (
// User errors
ErrUserNotFound = impart.HTTPError{http.StatusNotFound, "User doesn't exist."}
ErrUserNotFoundEmail = impart.HTTPError{http.StatusNotFound, "Please enter your username instead of your email address."}
ErrUsernameTaken = impart.HTTPError{http.StatusConflict, "Username is already taken."}
)

Loading…
Cancel
Save