Compare commits

..

5 Commits

View File

@ -34,14 +34,14 @@ impl Display for Error {
fn fmt(&self, formatter: &mut Formatter<'_>) -> fmt::Result { fn fmt(&self, formatter: &mut Formatter<'_>) -> fmt::Result {
write!( write!(
formatter, formatter,
"failed to {}", "{}",
match self { match self {
Error::CreateEnv(error) => format!("create environment: {error}"), Error::CreateEnv(error) => format!("failed to create environment: {error}"),
Error::EvalChunk(error) => format!("evaluate chunk: {error}"), Error::EvalChunk(error) => format!("failed to evaluate chunk: {error}"),
Error::ExecChunk(error) => format!("execute chunk: {error}"), Error::ExecChunk(error) => format!("failed to execute chunk: {error}"),
Error::LoadChunk(error) => format!("load chunk: {error}"), Error::LoadChunk(error) => format!("failed to load chunk: {error}"),
Error::MissingPath(error) => format!("get SCRIPT_PATH global: {error}"), Error::MissingPath(error) => format!("failed to get SCRIPT_PATH global: {error}"),
Error::ReadFile(error) => format!("read script file: {error}"), Error::ReadFile(error) => format!("failed to read script file: {error}"),
} }
) )
} }