mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-10 05:58:08 -05:00
Refactor error system (#33610)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user