summaryrefslogtreecommitdiffstats
path: root/models/user_mail.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-12 07:01:09 +0800
committerThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-11-12 00:01:09 +0100
commit555d8b16cb8670dd0a4e9094d26091eba6a6df36 (patch)
tree2a04105ef8d9f08b6c0634ce465eb0b5c7883bf0 /models/user_mail.go
parent900f233b3cf3cfad59d9be04700f0100ad3cca56 (diff)
downloadgitea-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.go2
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.