aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/repo/hook.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/hook.go')
-rw-r--r--routers/api/v1/repo/hook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index fa66fe47..466d3625 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -104,7 +104,7 @@ func EditHook(ctx *context.APIContext, form api.EditHookOption) {
if models.IsErrWebhookNotExist(err) {
ctx.Status(404)
} else {
- ctx.Error(500, "GetWebhookByID", err)
+ ctx.Error(500, "GetWebhookOfRepoByID", err)
}
return
}