From 63b10be020deffecba0c5eef8e5872418215b464 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Thu, 31 Aug 2017 15:03:16 +0100 Subject: APIv4: NewLocAppError -> NewAppError (#7328) --- api4/webhook.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'api4/webhook.go') 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 } } -- cgit v1.2.3-1-g7c22