diff options
author | Unknwon <u@gogs.io> | 2017-03-16 17:18:43 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-16 17:18:43 -0400 |
commit | 0ccd7c97abcb1ae314c9c17b0c08863cb13115fa (patch) | |
tree | d5314ef88257d64b3749194c024ca853486f799e /models/user_mail.go | |
parent | 4e64e71e28dcfb9ef41d7cbc63ff1474ad8e5126 (diff) |
models: rename ErrUserNotExist -> errors.UserNotExist
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 b1b23ee3..7c1cdd16 100644 --- a/models/user_mail.go +++ b/models/user_mail.go @@ -177,7 +177,7 @@ func MakeEmailPrimary(email *EmailAddress) error { if err != nil { return err } else if !has { - return ErrUserNotExist{email.UID, ""} + return errors.UserNotExist{email.UID, ""} } // Make sure the former primary email doesn't disappear. |