From ceda7536f16e84bc286d7a621bcd099d35943332 Mon Sep 17 00:00:00 2001 From: "Gustavo \"Guz\" L de Mello" Date: Tue, 11 Mar 2025 19:28:25 -0300 Subject: [PATCH] fix(smalltrip,exception): make MethodNotAllowed error more clear about allowed methods --- smalltrip/exception/400.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smalltrip/exception/400.go b/smalltrip/exception/400.go index dd43ee3..2c513da 100644 --- a/smalltrip/exception/400.go +++ b/smalltrip/exception/400.go @@ -203,7 +203,7 @@ func MethodNotAllowed(allowed []string, opts ...Option) Exception { WithStatus(http.StatusMethodNotAllowed), WithCode("Method Not Allowed"), WithMessage("The method is not allowed for this endpoints."), - WithError(fmt.Errorf("user agent tried to use method which is not a allowed method (%s)", a)), + WithError(fmt.Errorf("user agent tried to use method which is not a allowed method (allowed: %s)", a)), WithSeverity(WARN), WithHeader("Allow", a),