diff options
Diffstat (limited to 'routers/web/repo/helper.go')
-rw-r--r-- | routers/web/repo/helper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/helper.go b/routers/web/repo/helper.go index 3bf064c1e3..7b92cba0fd 100644 --- a/routers/web/repo/helper.go +++ b/routers/web/repo/helper.go @@ -12,7 +12,7 @@ func HandleGitError(ctx *context.Context, msg string, err error) { if git.IsErrNotExist(err) { ctx.Data["NotFoundPrompt"] = ctx.Locale.Tr("repo.tree_path_not_found", ctx.Repo.TreePath, ctx.Repo.RefTypeNameSubURL()) ctx.Data["NotFoundGoBackURL"] = ctx.Repo.RepoLink + "/src/" + ctx.Repo.RefTypeNameSubURL() - ctx.NotFound(msg, err) + ctx.NotFound(err) } else { ctx.ServerError(msg, err) } |