diff options
author | Corey Hulen <corey@hulen.com> | 2017-02-09 13:39:15 -0800 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-02-09 21:39:15 +0000 |
commit | 1359f7f3918befd2463103379d17bd2eb846654d (patch) | |
tree | f8fe7cbfd7b8a59da7a655f7ac7bbc9233a70258 /model/utils.go | |
parent | 432dc9239fdd27063adcee944675d066fb35cde6 (diff) | |
download | chat-1359f7f3918befd2463103379d17bd2eb846654d.tar.gz chat-1359f7f3918befd2463103379d17bd2eb846654d.tar.bz2 chat-1359f7f3918befd2463103379d17bd2eb846654d.zip |
Adding go vet from hack-a-thon (#5328)
* Adding go vet to the api package
* Adding go vet to app package
* Adding go vet to manualtesting package
* Adding go vet to the model package
* Adding go vet to the store dir
* Adding go vet to utils package
* Adding missing dirs with go files
* Fixing up makefile
* Fixing up makefile
* Removing root dir
Diffstat (limited to 'model/utils.go')
-rw-r--r-- | model/utils.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/model/utils.go b/model/utils.go index 05143b20d..9ecc19595 100644 --- a/model/utils.go +++ b/model/utils.go @@ -34,14 +34,14 @@ type StringArray []string type EncryptStringMap map[string]string type AppError struct { - Id string `json:"id"` - Message string `json:"message"` // Message to be display to the end user without debugging information - DetailedError string `json:"detailed_error"` // Internal error string to help the developer - RequestId string `json:"request_id,omitempty"` // The RequestId that's also set in the header - StatusCode int `json:"status_code,omitempty"` // The http status code - Where string `json:"-"` // The function where it happened in the form of Struct.Func - IsOAuth bool `json:"is_oauth,omitempty"` // Whether the error is OAuth specific - params map[string]interface{} `json:"-"` + Id string `json:"id"` + Message string `json:"message"` // Message to be display to the end user without debugging information + DetailedError string `json:"detailed_error"` // Internal error string to help the developer + RequestId string `json:"request_id,omitempty"` // The RequestId that's also set in the header + StatusCode int `json:"status_code,omitempty"` // The http status code + Where string `json:"-"` // The function where it happened in the form of Struct.Func + IsOAuth bool `json:"is_oauth,omitempty"` // Whether the error is OAuth specific + params map[string]interface{} } func (er *AppError) Error() string { |