aboutsummaryrefslogtreecommitdiffstats
path: root/services/repository/files/delete.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/repository/files/delete.go')
-rw-r--r--services/repository/files/delete.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/repository/files/delete.go b/services/repository/files/delete.go
index 781a762d0f..f098052ad8 100644
--- a/services/repository/files/delete.go
+++ b/services/repository/files/delete.go
@@ -104,7 +104,7 @@ func DeleteRepoFile(ctx context.Context, repo *repo_model.Repository, doer *user
} else {
lastCommitID, err := t.gitRepo.ConvertToSHA1(opts.LastCommitID)
if err != nil {
- return nil, fmt.Errorf("DeleteRepoFile: Invalid last commit ID: %v", err)
+ return nil, fmt.Errorf("DeleteRepoFile: Invalid last commit ID: %w", err)
}
opts.LastCommitID = lastCommitID.String()
}
@@ -112,7 +112,7 @@ func DeleteRepoFile(ctx context.Context, repo *repo_model.Repository, doer *user
// Get the files in the index
filesInIndex, err := t.LsFiles(opts.TreePath)
if err != nil {
- return nil, fmt.Errorf("DeleteRepoFile: %v", err)
+ return nil, fmt.Errorf("DeleteRepoFile: %w", err)
}
// Find the file we want to delete in the index