diff --git a/README.md b/README.md index 09c337e..672b7ff 100644 --- a/README.md +++ b/README.md @@ -129,10 +129,10 @@ mockedHTTPClient := mock.NewMockedHTTPClient( mock.WithRequestMatchHandler( mock.GetUsersByUsername, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - http.Error + mock.WriteError w, + http.StatusInternalServerError, "github went belly up or something", - http.StatusInternalServerError, ) }), ),