diff options
author | George Goldberg <george@gberg.me> | 2017-08-31 15:03:16 +0100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-08-31 10:03:16 -0400 |
commit | 63b10be020deffecba0c5eef8e5872418215b464 (patch) | |
tree | 192c061ba8abc8c07b4241fa1d186c0152f8267a /api4/webhook.go | |
parent | b37e17c03259b592e0bc735d48d15d7cf34469e4 (diff) | |
download | chat-63b10be020deffecba0c5eef8e5872418215b464.tar.gz chat-63b10be020deffecba0c5eef8e5872418215b464.tar.bz2 chat-63b10be020deffecba0c5eef8e5872418215b464.zip |
APIv4: NewLocAppError -> NewAppError (#7328)
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 } } |