diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2016-11-12 07:01:09 +0800 |
---|---|---|
committer | Thibault Meyer <0xbaadf00d@users.noreply.github.com> | 2016-11-12 00:01:09 +0100 |
commit | 555d8b16cb8670dd0a4e9094d26091eba6a6df36 (patch) | |
tree | 2a04105ef8d9f08b6c0634ce465eb0b5c7883bf0 /models/error.go | |
parent | 900f233b3cf3cfad59d9be04700f0100ad3cca56 (diff) | |
download | gitea-555d8b16cb8670dd0a4e9094d26091eba6a6df36.tar.gz gitea-555d8b16cb8670dd0a4e9094d26091eba6a6df36.zip |
fixed bug #151 caused Find should be Get (#153)
Diffstat (limited to 'models/error.go')
-rw-r--r-- | models/error.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/models/error.go b/models/error.go index 182a944a6f..459954545a 100644 --- a/models/error.go +++ b/models/error.go @@ -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 { |