Merge pull request '[GITEA] Make pushUpdate error verbose' (#1723) from Gusted/forgejo:forgejo-pushupdate-error into forgejo-dependency

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/1723
This commit is contained in:
Gusted 2023-11-19 13:58:08 +00:00
commit 6240f748f4

View file

@ -35,7 +35,9 @@ var pushQueue *queue.WorkerPoolQueue[[]*repo_module.PushUpdateOptions]
func handler(items ...[]*repo_module.PushUpdateOptions) [][]*repo_module.PushUpdateOptions { func handler(items ...[]*repo_module.PushUpdateOptions) [][]*repo_module.PushUpdateOptions {
for _, opts := range items { for _, opts := range items {
if err := pushUpdates(opts); err != nil { if err := pushUpdates(opts); err != nil {
log.Error("pushUpdate failed: %v", err) // Username and repository stays the same between items in opts.
pushUpdate := opts[0]
log.Error("pushUpdate[%s/%s] failed: %v", pushUpdate.RepoUserName, pushUpdate.RepoName, err)
} }
} }
return nil return nil