diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-01-27 12:49:22 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-01-27 12:49:22 -0500 |
commit | e467241a10e75c583c4d9ee0a4c6205a1175fab1 (patch) | |
tree | 3be4e33decd0c898931b9a212b42fbe6834589f4 /model/utils.go | |
parent | e50e26a2db6d7a4f42478b60f533a57dd33cc686 (diff) | |
parent | c50b8661ec0c1925062d3d5584ed5899c9e7ff44 (diff) | |
download | chat-e467241a10e75c583c4d9ee0a4c6205a1175fab1.tar.gz chat-e467241a10e75c583c4d9ee0a4c6205a1175fab1.tar.bz2 chat-e467241a10e75c583c4d9ee0a4c6205a1175fab1.zip |
Merge pull request #1997 from mattermost/PLT-7-server-final
PLT-7 Removing AppError ctor
Diffstat (limited to 'model/utils.go')
-rw-r--r-- | model/utils.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/model/utils.go b/model/utils.go index 719a2ad1b..695d4a0cb 100644 --- a/model/utils.go +++ b/model/utils.go @@ -71,16 +71,6 @@ func AppErrorFromJson(data io.Reader) *AppError { } } -func NewAppError(where string, message string, details string) *AppError { - ap := &AppError{} - ap.Message = message - ap.Where = where - ap.DetailedError = details - ap.StatusCode = 500 - ap.IsOAuth = false - return ap -} - func NewLocAppError(where string, id string, params map[string]interface{}, details string) *AppError { ap := &AppError{} ap.Id = id |