diff options
Diffstat (limited to 'api4/webhook.go')
-rw-r--r-- | api4/webhook.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/api4/webhook.go b/api4/webhook.go index 91241a017..6d332e8fc 100644 --- a/api4/webhook.go +++ b/api4/webhook.go @@ -466,12 +466,7 @@ func incomingWebhook(c *Context, w http.ResponseWriter, r *http.Request) { utils.T("api.webhook.incoming.debug"), ) if err != nil { - c.Err = model.NewLocAppError( - "incomingWebhook", - "api.webhook.incoming.debug.error", - nil, - err.Error(), - ) + c.Err = model.NewAppError("incomingWebhook", "api.webhook.incoming.debug.error", nil, err.Error(), http.StatusInternalServerError) return } } |