chore: rewrite all error messages for consistency (#5176)

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
DaniPopes
2023-10-25 22:12:03 +02:00
committed by GitHub
parent 1c0373b322
commit e05dba69ce
73 changed files with 649 additions and 599 deletions

View File

@ -102,13 +102,13 @@ pub enum EngineHookAction {}
#[derive(Debug, thiserror::Error)]
pub enum EngineHookError {
/// Hook channel closed.
#[error("Hook channel closed")]
#[error("hook channel closed")]
ChannelClosed,
/// Common error. Wrapper around [RethError].
#[error(transparent)]
Common(#[from] RethError),
/// An internal error occurred.
#[error("Internal hook error occurred.")]
#[error(transparent)]
Internal(#[from] Box<dyn std::error::Error + Send + Sync>),
}