Skip to content

Commit

Permalink
fixing small typo in error messages (#13525)
Browse files Browse the repository at this point in the history
  • Loading branch information
james-prysm authored Jan 25, 2024
1 parent c996109 commit c4c28e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/rpc/eth/shared/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c4c28e4

Please sign in to comment.