From c4c28e4825031480450c481aaa6560bf615a5fd3 Mon Sep 17 00:00:00 2001 From: james-prysm <90280386+james-prysm@users.noreply.github.com> Date: Wed, 24 Jan 2024 22:56:17 -0600 Subject: [PATCH] fixing small typo in error messages (#13525) --- beacon-chain/rpc/eth/shared/errors.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beacon-chain/rpc/eth/shared/errors.go b/beacon-chain/rpc/eth/shared/errors.go index d35762ca8..debad86fc 100644 --- a/beacon-chain/rpc/eth/shared/errors.go +++ b/beacon-chain/rpc/eth/shared/errors.go @@ -31,11 +31,11 @@ func WriteBlockFetchError(w http.ResponseWriter, blk interfaces.ReadOnlySignedBe return false } if err != nil { - httputil.HandleError(w, "Could not get block from block ID: %s"+err.Error(), http.StatusInternalServerError) + httputil.HandleError(w, "Could not get block from block ID: "+err.Error(), http.StatusInternalServerError) return false } if err = blocks.BeaconBlockIsNil(blk); err != nil { - httputil.HandleError(w, "Could not find requested block: %s"+err.Error(), http.StatusNotFound) + httputil.HandleError(w, "Could not find requested block: "+err.Error(), http.StatusNotFound) return false } return true