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/api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'api4/api.go') 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)) -- cgit v1.2.3-1-g7c22