1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-26 17:08:25 +00:00
Giteabot
2023-09-29 18:35:11 +08:00
committed by GitHub
parent f77b4cb4a2
commit 84ee02faa7
6 changed files with 37 additions and 8 deletions

View File

@@ -123,7 +123,7 @@ func editFile(ctx *context.Context, isNewFile bool) {
if !isNewFile {
entry, err := ctx.Repo.Commit.GetTreeEntryByPath(ctx.Repo.TreePath)
if err != nil {
ctx.NotFoundOrServerError("GetTreeEntryByPath", git.IsErrNotExist, err)
HandleGitError(ctx, "Repo.Commit.GetTreeEntryByPath", err)
return
}