Skip to content

Commit 105d587

Browse files
committed
fix: nonsensical error message when failing to send branch update events
1 parent fd2af95 commit 105d587

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/private/hook_post_receive.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ func HookPostReceive(ctx *gitea_context.PrivateContext) {
237237
// Notify users with read access via eventsource that a change
238238
// has been made
239239
if err := SendContextBranchUpdateEvents(ctx); err != nil {
240-
log.Error("Failed to Get Repo Readers: %s/%s Error: %v", ownerName, repoName, err)
240+
log.Error("Failed to Send Branch Update Events: %s/%s Error: %v", ownerName, repoName, err)
241241

242242
ctx.JSON(http.StatusInternalServerError, private.HookPostReceiveResult{
243-
Err: fmt.Sprintf("Failed to Get Repo Readers: %s/%s Error: %v", ownerName, repoName, err),
243+
Err: fmt.Sprintf("Failed to Send Branch Update Events: %s/%s Error: %v", ownerName, repoName, err),
244244
})
245245

246246
return

0 commit comments

Comments
 (0)