summaryrefslogtreecommitdiffstats
path: root/api4/api.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-08-31 15:03:16 +0100
committerJoram Wilander <jwawilander@gmail.com>2017-08-31 10:03:16 -0400
commit63b10be020deffecba0c5eef8e5872418215b464 (patch)
tree192c061ba8abc8c07b4241fa1d186c0152f8267a /api4/api.go
parentb37e17c03259b592e0bc735d48d15d7cf34469e4 (diff)
downloadchat-63b10be020deffecba0c5eef8e5872418215b464.tar.gz
chat-63b10be020deffecba0c5eef8e5872418215b464.tar.bz2
chat-63b10be020deffecba0c5eef8e5872418215b464.zip
APIv4: NewLocAppError -> NewAppError (#7328)
Diffstat (limited to 'api4/api.go')
-rw-r--r--api4/api.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/api.go b/api4/api.go
index 6e9534d40..8ed94c193 100644
--- a/api4/api.go
+++ b/api4/api.go
@@ -237,9 +237,8 @@ func HandleEtag(etag string, routeName string, w http.ResponseWriter, r *http.Re
}
func Handle404(w http.ResponseWriter, r *http.Request) {
- err := model.NewLocAppError("Handle404", "api.context.404.app_error", nil, "")
+ err := model.NewAppError("Handle404", "api.context.404.app_error", nil, "", http.StatusNotFound)
err.Translate(utils.T)
- err.StatusCode = http.StatusNotFound
l4g.Debug("%v: code=404 ip=%v", r.URL.Path, utils.GetIpAddress(r))