Skip to content

Commit

Permalink
Rolledback uppercase in MISSING_KEY type errors (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
guscarreon committed Feb 8, 2022
1 parent cd6f230 commit e3efcf8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions endpoints/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ func TestGetHandler(t *testing.T) {
},
testOutput{
responseCode: http.StatusBadRequest,
responseBody: "GET /cache: missing required parameter uuid\n",
responseBody: "GET /cache: Missing required parameter uuid\n",
logEntries: []logEntry{
{
msg: "GET /cache: missing required parameter uuid",
msg: "GET /cache: Missing required parameter uuid",
lvl: logrus.ErrorLevel,
},
},
Expand Down
2 changes: 1 addition & 1 deletion utils/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var errToStatusCodes map[int]int = map[int]int{
// Not all error types are found here since some of them have non-constant error messages and
// are assigned custom messages upon creation
var errToMsgs map[int]string = map[int]string{
MISSING_KEY: "missing required parameter uuid",
MISSING_KEY: "Missing required parameter uuid",
RECORD_EXISTS: "Record exists with provided key.",
MISSING_VALUE: "Missing value.",
UNKNOWN_STORED_DATA_TYPE: "Cache data was corrupted. Cannot determine type.",
Expand Down
2 changes: 1 addition & 1 deletion utils/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func TestPBCError(t *testing.T) {
expected: PBCError{
Type: MISSING_KEY,
StatusCode: http.StatusBadRequest,
msg: "missing required parameter uuid",
msg: "Missing required parameter uuid",
},
},
{
Expand Down

0 comments on commit e3efcf8

Please sign in to comment.