From c7abbe1b8d2171d8484003e6d86758e55fb37e9a Mon Sep 17 00:00:00 2001 From: Bruno Michel Date: Tue, 12 Sep 2023 11:09:16 +0200 Subject: [PATCH] Fix bad case for error message --- pkg/jsonapi/errors.go | 4 ++-- web/auth/auth_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/jsonapi/errors.go b/pkg/jsonapi/errors.go index 5757749a6d4..92ee039e985 100644 --- a/pkg/jsonapi/errors.go +++ b/pkg/jsonapi/errors.go @@ -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(), } } @@ -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", } } diff --git a/web/auth/auth_test.go b/web/auth/auth_test.go index 01f4dc05c45..4b7f4fe3c39 100644 --- a/web/auth/auth_test.go +++ b/web/auth/auth_test.go @@ -1785,7 +1785,7 @@ func TestAuth(t *testing.T) { "detail": "Missing secret", "source": map[string]interface{}{}, "status": "400", - "title": "Bad request", + "title": "Bad Request", }) })