diff options
author | Unknown <joe2010xtmf@163.com> | 2014-06-27 23:14:33 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-06-27 23:14:33 -0400 |
commit | ee9b7f322ff4c4c14952c2f83fb03e90fa583cad (patch) | |
tree | 1a55ce6029ca82add9a137db3771ad7d5d4fa55e /routers | |
parent | 57ac15aa20a24583cf0799fd46d2c36816d28692 (diff) | |
download | gitea-ee9b7f322ff4c4c14952c2f83fb03e90fa583cad.tar.gz gitea-ee9b7f322ff4c4c14952c2f83fb03e90fa583cad.zip |
Clean code
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/setting.go | 2 | ||||
-rw-r--r-- | routers/user/user.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go index 9075ee0b43..8e4b0840c7 100644 --- a/routers/user/setting.go +++ b/routers/user/setting.go @@ -68,7 +68,7 @@ func SettingPost(ctx *middleware.Context, form auth.UpdateProfileForm) { ctx.User.Avatar = base.EncodeMd5(form.Avatar) ctx.User.AvatarEmail = form.Avatar if err := models.UpdateUser(ctx.User); err != nil { - ctx.Handle(500, "setting.Setting", err) + ctx.Handle(500, "setting.Setting(UpdateUser)", err) return } log.Trace("%s User setting updated: %s", ctx.Req.RequestURI, ctx.User.LowerName) diff --git a/routers/user/user.go b/routers/user/user.go index a50f126c0c..a402744b86 100644 --- a/routers/user/user.go +++ b/routers/user/user.go @@ -296,7 +296,7 @@ func DeletePost(ctx *middleware.Context) { case models.ErrUserOwnRepos: ctx.Flash.Error("Your account still have ownership of repository, you have to delete or transfer them first.") default: - ctx.Handle(500, "user.Delete", err) + ctx.Handle(500, "user.Delete(DeleteUser)", err) return } } else { |