summaryrefslogtreecommitdiff
path: root/server/errors/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/errors/models.go')
-rw-r--r--server/errors/models.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/errors/models.go b/server/errors/models.go
index 2b90d21..1104c4f 100644
--- a/server/errors/models.go
+++ b/server/errors/models.go
@@ -10,9 +10,9 @@ type AppError struct {
}
func NewAppError(status int, msg string) *AppError {
- msgJson, err := json.Marshal(map[string]string{"message": msg})
+ msgJSON, err := json.Marshal(map[string]string{"message": msg})
if err != nil {
- msgJson, _ = json.Marshal(map[string]string{"message": err.Error()})
+ msgJSON, _ = json.Marshal(map[string]string{"message": err.Error()})
}
- return &AppError{status, msgJson}
+ return &AppError{status, msgJSON}
}