Skip to content

Commit e1bbe8a

Browse files
Jamie Tannajamietanna
authored andcommitted
docs: correct accidentally hardcoded error message
1 parent 8d9c8bf commit e1bbe8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oapi_validate_example_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ paths:
295295
}
296296

297297
errorHandlerFunc := func(w http.ResponseWriter, message string, statusCode int) {
298-
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)
298+
fmt.Printf("ErrorHandler: An HTTP %d was returned by the middleware with error message: %s\n", statusCode, message)
299299
http.Error(w, "This was rewritten by the ErrorHandler", statusCode)
300300
}
301301

0 commit comments

Comments
 (0)