Skip to content

Commit

Permalink
Fix bad case for error message (#4120)
Browse files Browse the repository at this point in the history
Fix #3715
  • Loading branch information
nono authored Sep 12, 2023
2 parents 6b4764b + c7abbe1 commit 3d337fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/jsonapi/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func NotFound(err error) *Error {
func BadRequest(err error) *Error {
return &Error{
Status: http.StatusBadRequest,
Title: "Bad request",
Title: "Bad Request",
Detail: err.Error(),
}
}
Expand All @@ -69,7 +69,7 @@ func BadRequest(err error) *Error {
func BadJSON() *Error {
return &Error{
Status: http.StatusBadRequest,
Title: "Bad request",
Title: "Bad Request",
Detail: "JSON input is malformed or is missing mandatory fields",
}
}
Expand Down
2 changes: 1 addition & 1 deletion web/auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ func TestAuth(t *testing.T) {
"detail": "Missing secret",
"source": map[string]interface{}{},
"status": "400",
"title": "Bad request",
"title": "Bad Request",
})
})

Expand Down

0 comments on commit 3d337fb

Please sign in to comment.