diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-27 10:56:15 -0500 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-27 10:56:15 -0500 |
commit | dc4b71bba2cad5e85e86cc6ecb743bea84f9ccc8 (patch) | |
tree | 61703583db1a1bdf18c1f4b410950c9d701abe2d /api/admin.go | |
parent | b7606da40f5403896dfbf930837530b4b22abacd (diff) | |
download | chat-dc4b71bba2cad5e85e86cc6ecb743bea84f9ccc8.tar.gz chat-dc4b71bba2cad5e85e86cc6ecb743bea84f9ccc8.tar.bz2 chat-dc4b71bba2cad5e85e86cc6ecb743bea84f9ccc8.zip |
PLT-7 Removing AppError ctor
Diffstat (limited to 'api/admin.go')
-rw-r--r-- | api/admin.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/api/admin.go b/api/admin.go index b19772fdf..0ea6341e2 100644 --- a/api/admin.go +++ b/api/admin.go @@ -73,7 +73,9 @@ func logClient(c *Context, w http.ResponseWriter, r *http.Request) { } if lvl == "ERROR" { - err := model.NewAppError("client", msg, "") + err := &model.AppError{} + err.Message = msg + err.Where = "client" c.LogError(err) } |