Skip to content

Commit

Permalink
Improve logging for e-mail and OpenID already in use errors (gogs#4174)
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherjmedlin authored and techknowlogick committed Jun 8, 2018
1 parent 3fbba25 commit b5f61f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/error.go
Expand Up @@ -102,7 +102,7 @@ func IsErrEmailAlreadyUsed(err error) bool {
}

func (err ErrEmailAlreadyUsed) Error() string {
return fmt.Sprintf("e-mail has been used [email: %s]", err.Email)
return fmt.Sprintf("e-mail already in use [email: %s]", err.Email)
}

// ErrOpenIDAlreadyUsed represents a "OpenIDAlreadyUsed" kind of error.
Expand All @@ -117,7 +117,7 @@ func IsErrOpenIDAlreadyUsed(err error) bool {
}

func (err ErrOpenIDAlreadyUsed) Error() string {
return fmt.Sprintf("OpenID has been used [oid: %s]", err.OpenID)
return fmt.Sprintf("OpenID already in use [oid: %s]", err.OpenID)
}

// ErrUserOwnRepos represents a "UserOwnRepos" kind of error.
Expand Down

0 comments on commit b5f61f1

Please sign in to comment.