From a9d68a6884aa3935f2d00071df1f6b7accdc7f6d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 31 Jan 2016 13:33:36 -0500 Subject: [PATCH] fix #2529 --- gogs.go | 2 +- routers/user/profile.go | 2 +- templates/.VERSION | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gogs.go b/gogs.go index 0b93a0840..e4a007af5 100644 --- a/gogs.go +++ b/gogs.go @@ -17,7 +17,7 @@ import ( "github.com/gogits/gogs/modules/setting" ) -const APP_VER = "0.8.25.0130" +const APP_VER = "0.8.25.0131" func init() { runtime.GOMAXPROCS(runtime.NumCPU()) diff --git a/routers/user/profile.go b/routers/user/profile.go index 1452b2973..0a876610e 100644 --- a/routers/user/profile.go +++ b/routers/user/profile.go @@ -25,7 +25,7 @@ func GetUserByName(ctx *middleware.Context, name string) *models.User { user, err := models.GetUserByName(name) if err != nil { if models.IsErrUserNotExist(err) { - ctx.Error(404) + ctx.Handle(404, "GetUserByName", nil) } else { ctx.Handle(500, "GetUserByName", err) } diff --git a/templates/.VERSION b/templates/.VERSION index 22d091a7f..93ddc737e 100644 --- a/templates/.VERSION +++ b/templates/.VERSION @@ -1 +1 @@ -0.8.25.0130 \ No newline at end of file +0.8.25.0131 \ No newline at end of file