From a462d58175b28bf8ded1cae5971c36bc8930fa9e Mon Sep 17 00:00:00 2001 From: trivernis Date: Sat, 21 Jan 2023 21:59:30 +0100 Subject: [PATCH] Change error messages --- src/mapper/error.rs | 4 ++-- src/mapper/mapped_command.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mapper/error.rs b/src/mapper/error.rs index dfcbabf..f565096 100644 --- a/src/mapper/error.rs +++ b/src/mapper/error.rs @@ -19,10 +19,10 @@ pub enum MapperError { ConfigError, ), - #[error("Failed to execute mapped command: {0}")] + #[error("Failed to execute mapped command")] Command(#[from] CommandError), - #[error("IO Error: {0}")] + #[error("IO operation failed")] Io(#[from] io::Error), #[error("Failed to map directory {src:?}")] diff --git a/src/mapper/mapped_command.rs b/src/mapper/mapped_command.rs index fcf5f4a..4b07a39 100644 --- a/src/mapper/mapped_command.rs +++ b/src/mapper/mapped_command.rs @@ -19,7 +19,7 @@ pub enum CommandError { #[error(transparent)] Io(#[from] io::Error), - #[error("The command {0:?} could not be found")] + #[error("The command {0:?} could not be found for this nodejs version")] NotFound(PathBuf), }