From a763dff7ddac4cff457ea3b3704fd30e52973d4b Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Thu, 13 Apr 2023 15:55:53 +0200 Subject: [PATCH] fix(rpc): use exact error messages (#2226) --- crates/rpc/rpc-types/src/eth/engine/error.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/rpc/rpc-types/src/eth/engine/error.rs b/crates/rpc/rpc-types/src/eth/engine/error.rs index ac689efd74..b028b4dd80 100644 --- a/crates/rpc/rpc-types/src/eth/engine/error.rs +++ b/crates/rpc/rpc-types/src/eth/engine/error.rs @@ -19,19 +19,19 @@ pub enum EngineRpcError { #[error("Internal JSON-RPC error")] InternalError, /// Generic client error while processing request. - #[error("Generic client error while processing request")] + #[error("Server error")] ServerError, /// Payload does not exist / is not available. - #[error("Payload does not exist / is not available")] + #[error("Unknown payload")] UnknownPayload, /// Forkchoice state is invalid / inconsistent. - #[error("Forkchoice state is invalid / inconsistent")] + #[error("Invalid forkchoice state")] InvalidForkchoiceState, /// Payload attributes are invalid / inconsistent. - #[error("Payload attributes are invalid / inconsistent")] + #[error("Invalid payload attributes")] InvalidPayloadAttributes, /// Number of requested entities is too large. - #[error("Number of requested entities is too large")] + #[error("Too large request")] TooLargeRequest, }