update miette and switch to GenericErrors (#5222)

This commit is contained in:
Kat Marchán
2022-04-18 05:34:10 -07:00
committed by GitHub
parent cf65f77b02
commit 1314a87cb0
141 changed files with 1569 additions and 689 deletions

View File

@ -345,14 +345,15 @@ impl ExternalCommand {
process.current_dir(d);
process
} else {
return Err(ShellError::SpannedLabeledErrorHelp(
return Err(ShellError::GenericError(
"Current directory not found".to_string(),
"did not find PWD environment variable".to_string(),
span,
concat!(
Some(span),
Some(concat!(
"The environment variable 'PWD' was not found. ",
"It is required to define the current directory when running an external command."
).to_string(),
).to_string()),
Vec::new(),
));
};