1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

fixed bug #151 caused Find should be Get (#153)

This commit is contained in:
Lunny Xiao
2016-11-12 07:01:09 +08:00
committed by Thibault Meyer
parent 900f233b3c
commit 555d8b16cb
4 changed files with 29 additions and 21 deletions

View File

@@ -55,8 +55,9 @@ func (err ErrUserAlreadyExist) Error() string {
}
type ErrUserNotExist struct {
UID int64
Name string
UID int64
Name string
KeyID int64
}
func IsErrUserNotExist(err error) bool {
@@ -65,7 +66,7 @@ func IsErrUserNotExist(err error) bool {
}
func (err ErrUserNotExist) Error() string {
return fmt.Sprintf("user does not exist [uid: %d, name: %s]", err.UID, err.Name)
return fmt.Sprintf("user does not exist [uid: %d, name: %s, keyid: %d]", err.UID, err.Name, err.KeyID)
}
type ErrEmailAlreadyUsed struct {