Improve error message in tidy
This commit is contained in:
parent
c290e9de32
commit
8a87f02138
1 changed files with 3 additions and 4 deletions
|
|
@ -267,11 +267,10 @@ fn create_venv_at_path(path: &Path) -> Result<(), Error> {
|
|||
|
||||
let stderr = String::from_utf8_lossy(&out.stderr);
|
||||
let err = if stderr.contains("No module named virtualenv") {
|
||||
Error::Generic(
|
||||
Error::Generic(format!(
|
||||
"virtualenv not found: you may need to install it \
|
||||
(`python3 -m pip install venv`)"
|
||||
.to_owned(),
|
||||
)
|
||||
(`{sys_py} -m pip install virtualenv`)"
|
||||
))
|
||||
} else {
|
||||
Error::Generic(format!(
|
||||
"failed to create venv at '{}' using {sys_py}: {stderr}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue