Reword sh not found error messages (#1002)

This commit is contained in:
Hoàng Đức Hiếu 2021-10-19 14:37:45 +07:00 committed by GitHub
parent 58a196f434
commit 8eae8c6024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -253,17 +253,17 @@ impl<'src> ColorDisplay for Error<'src> {
match io_error.kind() {
io::ErrorKind::NotFound => write!(
f,
"Backtick could not be run because just could not find `sh`:\n{}",
"Backtick could not be run because just could not find the shell:\n{}",
io_error
),
io::ErrorKind::PermissionDenied => write!(
f,
"Backtick could not be run because just could not run `sh`:\n{}",
"Backtick could not be run because just could not run the shell:\n{}",
io_error
),
_ => write!(
f,
"Backtick could not be run because of an IO error while launching `sh`:\n{}",
"Backtick could not be run because of an IO error while launching the shell:\n{}",
io_error
),
}?;
@ -481,17 +481,17 @@ impl<'src> ColorDisplay for Error<'src> {
match io_error.kind() {
io::ErrorKind::NotFound => write!(
f,
"Recipe `{}` could not be run because just could not find `sh`: {}",
"Recipe `{}` could not be run because just could not find the shell: {}",
recipe, io_error
),
io::ErrorKind::PermissionDenied => write!(
f,
"Recipe `{}` could not be run because just could not run `sh`: {}",
"Recipe `{}` could not be run because just could not run the shell: {}",
recipe, io_error
),
_ => write!(
f,
"Recipe `{}` could not be run because of an IO error while launching `sh`: {}",
"Recipe `{}` could not be run because of an IO error while launching the shell: {}",
recipe, io_error
),
}?;