From f39b0be0d115a42b16c478f3dca1f51731655aa1 Mon Sep 17 00:00:00 2001 From: Michael Sprauer Date: Wed, 27 Jul 2022 15:26:00 +0200 Subject: [PATCH] works too --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ) }), ),