From a2988cee02f372d2df79c8ca159a1131434084f3 Mon Sep 17 00:00:00 2001 From: Marcin Wolny Date: Fri, 23 Feb 2024 13:19:48 +0100 Subject: [PATCH] Invalid error handling --- internal/proxy/healthchecker_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/proxy/healthchecker_utils.go b/internal/proxy/healthchecker_utils.go index 2da9d7a..b6b3a1c 100644 --- a/internal/proxy/healthchecker_utils.go +++ b/internal/proxy/healthchecker_utils.go @@ -63,7 +63,7 @@ func performGasLeftCall(c context.Context, client *http.Client, url string) (uin defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - return 0, errors.Wrap(err, "gas left check failed") + return 0, errors.New("gas left check failed") } result := &JSONRPCResponse{}