Compare commits
5 Commits
d89afd18dc
...
1c65a2b035
Author | SHA1 | Date | |
---|---|---|---|
1c65a2b035 | |||
e3cdf4260e | |||
d1a64ee3a4 | |||
f367fce138 | |||
c2c9ca609e |
@ -34,14 +34,14 @@ impl Display for Error {
|
||||
fn fmt(&self, formatter: &mut Formatter<'_>) -> fmt::Result {
|
||||
write!(
|
||||
formatter,
|
||||
"{}",
|
||||
"failed to {}",
|
||||
match self {
|
||||
Error::CreateEnv(error) => format!("failed to create environment: {error}"),
|
||||
Error::EvalChunk(error) => format!("failed to evaluate chunk: {error}"),
|
||||
Error::ExecChunk(error) => format!("failed to execute chunk: {error}"),
|
||||
Error::LoadChunk(error) => format!("failed to load chunk: {error}"),
|
||||
Error::MissingPath(error) => format!("failed to get SCRIPT_PATH global: {error}"),
|
||||
Error::ReadFile(error) => format!("failed to read script file: {error}"),
|
||||
Error::CreateEnv(error) => format!("create environment: {error}"),
|
||||
Error::EvalChunk(error) => format!("evaluate chunk: {error}"),
|
||||
Error::ExecChunk(error) => format!("execute chunk: {error}"),
|
||||
Error::LoadChunk(error) => format!("load chunk: {error}"),
|
||||
Error::MissingPath(error) => format!("get SCRIPT_PATH global: {error}"),
|
||||
Error::ReadFile(error) => format!("read script file: {error}"),
|
||||
}
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user