Skip to content

Commit

Permalink
Improve error message in tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Jun 25, 2024
1 parent c290e9d commit 8a87f02
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/tools/tidy/src/ext_tool_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}",
Expand Down

0 comments on commit 8a87f02

Please sign in to comment.