Reword sh
not found error messages (#1002)
This commit is contained in:
parent
58a196f434
commit
8eae8c6024
12
src/error.rs
12
src/error.rs
@ -253,17 +253,17 @@ impl<'src> ColorDisplay for Error<'src> {
|
|||||||
match io_error.kind() {
|
match io_error.kind() {
|
||||||
io::ErrorKind::NotFound => write!(
|
io::ErrorKind::NotFound => write!(
|
||||||
f,
|
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_error
|
||||||
),
|
),
|
||||||
io::ErrorKind::PermissionDenied => write!(
|
io::ErrorKind::PermissionDenied => write!(
|
||||||
f,
|
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
|
io_error
|
||||||
),
|
),
|
||||||
_ => write!(
|
_ => write!(
|
||||||
f,
|
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
|
io_error
|
||||||
),
|
),
|
||||||
}?;
|
}?;
|
||||||
@ -481,17 +481,17 @@ impl<'src> ColorDisplay for Error<'src> {
|
|||||||
match io_error.kind() {
|
match io_error.kind() {
|
||||||
io::ErrorKind::NotFound => write!(
|
io::ErrorKind::NotFound => write!(
|
||||||
f,
|
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
|
recipe, io_error
|
||||||
),
|
),
|
||||||
io::ErrorKind::PermissionDenied => write!(
|
io::ErrorKind::PermissionDenied => write!(
|
||||||
f,
|
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
|
recipe, io_error
|
||||||
),
|
),
|
||||||
_ => write!(
|
_ => write!(
|
||||||
f,
|
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
|
recipe, io_error
|
||||||
),
|
),
|
||||||
}?;
|
}?;
|
||||||
|
Loading…
Reference in New Issue
Block a user