summaryrefslogtreecommitdiff
path: root/server/errors/models.go
diff options
context:
space:
mode:
authorMichael Hunteman <huntemanmt@gmail.com>2025-02-02 18:57:30 -0600
committerMichael Hunteman <huntemanmt@gmail.com>2025-02-02 19:04:24 -0600
commit5fffbba3b851f6cebfd0e616bef2ff6f0c520c3d (patch)
treefe8b7a5ba77f83f7b82753d5cc58cba51596da2b /server/errors/models.go
parent23bcef02052c45089358d22d0645ceac858de3bb (diff)
Fix error handlingHEADmaster
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}
}