From 93eb32fb64567dd139f48af6d154eebbdff36a70 Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Thu, 24 Apr 2025 10:44:27 +0100 Subject: [PATCH] docs: correct accidentally hardcoded error message --- oapi_validate_example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oapi_validate_example_test.go b/oapi_validate_example_test.go index d0cab9a..ade5bf1 100644 --- a/oapi_validate_example_test.go +++ b/oapi_validate_example_test.go @@ -295,7 +295,7 @@ paths: } errorHandlerFunc := func(w http.ResponseWriter, message string, statusCode int) { - fmt.Printf("ErrorHandler: An HTTP %d was returned by the middleware with error message: request body has an error: value is required but missing\n", statusCode) + fmt.Printf("ErrorHandler: An HTTP %d was returned by the middleware with error message: %s\n", statusCode, message) http.Error(w, "This was rewritten by the ErrorHandler", statusCode) }