From 084ad2ed2b3bf436b8a9df88d453c6aaad7c09a5 Mon Sep 17 00:00:00 2001 From: Magnus Markling Date: Sat, 26 Oct 2024 18:10:00 +0200 Subject: [PATCH] Remove duplicate word in error message (#8589) ## Summary Remove duplicate word ("because" ) in error message. ## Test Plan I ran all the tests locally. --- crates/uv/src/commands/project/mod.rs | 2 +- crates/uv/tests/it/sync.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/uv/src/commands/project/mod.rs b/crates/uv/src/commands/project/mod.rs index b85029742..b928f1c8a 100644 --- a/crates/uv/src/commands/project/mod.rs +++ b/crates/uv/src/commands/project/mod.rs @@ -439,7 +439,7 @@ impl ProjectInterpreter { if fs_err::read_dir(&venv).is_ok_and(|mut dir| dir.next().is_some()) { return Err(ProjectError::InvalidProjectEnvironmentDir( venv, - "because it is not a valid Python environment (no Python executable was found)" + "it is not a valid Python environment (no Python executable was found)" .to_string(), )); } diff --git a/crates/uv/tests/it/sync.rs b/crates/uv/tests/it/sync.rs index 21ba528d1..1841722d6 100644 --- a/crates/uv/tests/it/sync.rs +++ b/crates/uv/tests/it/sync.rs @@ -2385,7 +2385,7 @@ fn sync_custom_environment_path() -> Result<()> { ----- stdout ----- ----- stderr ----- - error: Project virtual environment directory `[TEMP_DIR]/foo` cannot be used because because it is not a valid Python environment (no Python executable was found) + error: Project virtual environment directory `[TEMP_DIR]/foo` cannot be used because it is not a valid Python environment (no Python executable was found) "###); // But if it's just an incompatible virtual environment... @@ -3554,7 +3554,7 @@ fn sync_invalid_environment() -> Result<()> { ----- stdout ----- ----- stderr ----- - error: Project virtual environment directory `[VENV]/` cannot be used because because it is not a valid Python environment (no Python executable was found) + error: Project virtual environment directory `[VENV]/` cannot be used because it is not a valid Python environment (no Python executable was found) "###); // But if it's just an incompatible virtual environment... @@ -3620,7 +3620,7 @@ fn sync_invalid_environment() -> Result<()> { ----- stdout ----- ----- stderr ----- - error: Project virtual environment directory `[VENV]/` cannot be used because because it is not a valid Python environment (no Python executable was found) + error: Project virtual environment directory `[VENV]/` cannot be used because it is not a valid Python environment (no Python executable was found) "###); // But if it's not a virtual environment...