mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rewrite all error messages for consistency (#5176)
Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
@ -15,13 +15,13 @@ use thiserror::Error;
|
||||
#[non_exhaustive]
|
||||
pub enum Error {
|
||||
/// The test was skipped
|
||||
#[error("Test was skipped")]
|
||||
#[error("test was skipped")]
|
||||
Skipped,
|
||||
/// No post state found in test
|
||||
#[error("No post state found for validation")]
|
||||
#[error("no post state found for validation")]
|
||||
MissingPostState,
|
||||
/// An IO error occurred
|
||||
#[error("An error occurred interacting with the file system at {path}: {error}")]
|
||||
#[error("an error occurred interacting with the file system at {path}: {error}")]
|
||||
Io {
|
||||
/// The path to the file or directory
|
||||
path: PathBuf,
|
||||
@ -30,7 +30,7 @@ pub enum Error {
|
||||
error: std::io::Error,
|
||||
},
|
||||
/// A deserialization error occurred
|
||||
#[error("An error occurred deserializing the test at {path}: {error}")]
|
||||
#[error("an error occurred deserializing the test at {path}: {error}")]
|
||||
CouldNotDeserialize {
|
||||
/// The path to the file we wanted to deserialize
|
||||
path: PathBuf,
|
||||
@ -42,13 +42,13 @@ pub enum Error {
|
||||
#[error(transparent)]
|
||||
Database(#[from] DatabaseError),
|
||||
/// A test assertion failed.
|
||||
#[error("Test failed: {0}")]
|
||||
#[error("test failed: {0}")]
|
||||
Assertion(String),
|
||||
/// An error internally in reth occurred.
|
||||
#[error("Test failed: {0}")]
|
||||
#[error("test failed: {0}")]
|
||||
RethError(#[from] RethError),
|
||||
/// An error occurred while decoding RLP.
|
||||
#[error("An error occurred deserializing RLP")]
|
||||
#[error("an error occurred deserializing RLP: {0}")]
|
||||
RlpDecodeError(#[from] alloy_rlp::Error),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user