make Error enum variants clearer

This commit is contained in:
2024-12-31 08:42:28 +00:00
parent e3f6613c6d
commit 84ada5576f
5 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -3,13 +3,13 @@ use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("failed to obtain handle")]
HandleError(String),
ObtainHandleError(String),
#[error("failed to access process memory")]
MemoryError(String),
AccessMemoryError(String),
#[error("failed to create process")]
ProcessError(String),
CreateProcessError(String),
#[error("failed to create snapshot")]
SnapshotError(String),
CreateSnapshotError(String),
#[error("failed to convert integer")]
ConvertIntegerError(#[from] std::num::TryFromIntError),
}