PLT-7 Removing AppError ctor

This commit is contained in:
=Corey Hulen
2016-01-27 10:56:15 -05:00
parent b7606da40f
commit dc4b71bba2
5 changed files with 18 additions and 14 deletions

View File

@@ -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)
}