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/user_mail.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/user_mail.go')
-rw-r--r-- | models/user_mail.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user_mail.go b/models/user_mail.go index 9dc3d624b4..c6ade3fa43 100644 --- a/models/user_mail.go +++ b/models/user_mail.go @@ -172,7 +172,7 @@ func MakeEmailPrimary(email *EmailAddress) error { if err != nil { return err } else if !has { - return ErrUserNotExist{email.UID, ""} + return ErrUserNotExist{email.UID, "", 0} } // Make sure the former primary email doesn't disappear. |