diff options
author | Christopher Medlin <christopherjmedlin@gmail.com> | 2018-06-08 11:09:10 -0700 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-06-08 14:09:10 -0400 |
commit | b5f61f1d15647a3d46eb40c951fdebb8253c04c8 (patch) | |
tree | 0fcd6c77f7e19f98915975a3008f21f82649d795 /models/error.go | |
parent | 3fbba2553a615efbda3f5b28a585a71824c84cc8 (diff) | |
download | gitea-b5f61f1d15647a3d46eb40c951fdebb8253c04c8.tar.gz gitea-b5f61f1d15647a3d46eb40c951fdebb8253c04c8.zip |
Improve logging for e-mail and OpenID already in use errors (#4174)
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/error.go b/models/error.go index 316f8c34bd..0757044475 100644 --- a/models/error.go +++ b/models/error.go @@ -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. @@ -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. |