fix(net): correct error messages for decrypt and header paths (#19039)

This commit is contained in:
GarmashAlex
2025-10-18 18:11:15 +03:00
committed by GitHub
parent a718752bf5
commit 10ed1844e4

View File

@@ -33,7 +33,7 @@ pub enum ECIESErrorImpl {
#[error(transparent)]
IO(std::io::Error),
/// Error when checking the HMAC tag against the tag on the message being decrypted
#[error("tag check failure in read_header")]
#[error("tag check failure in decrypt_message")]
TagCheckDecryptFailed,
/// Error when checking the HMAC tag against the tag on the header
#[error("tag check failure in read_header")]
@@ -47,8 +47,8 @@ pub enum ECIESErrorImpl {
/// Error when parsing ACK data
#[error("invalid ack data")]
InvalidAckData,
/// Error when reading the header if its length is <3
#[error("invalid body data")]
/// Error when reading/parsing the `RLPx` header
#[error("invalid header")]
InvalidHeader,
/// Error when interacting with secp256k1
#[error(transparent)]