Skip to content

Commit 11e94a8

Browse files
committed
fix: change message for project
1 parent f441817 commit 11e94a8

File tree

1 file changed

+2
-3
lines changed
  • crates/uv/src/commands/project

1 file changed

+2
-3
lines changed

crates/uv/src/commands/project/run.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,9 +1110,8 @@ hint: If you are running a script with `{}` in the shebang, you may need to incl
11101110
let version_part = executable.strip_prefix("python").unwrap_or("");
11111111
let current_executable_python_version = base_interpreter.python_version().only_release();
11121112
// Determine the environment type
1113-
let env_type = if project_found { "the project" } else { "the" };
1113+
let env_type = if project_found { "project" } else { "virtual" };
11141114

1115-
// Construct the message dynamically
11161115
let message_suffix = if project_found {
11171116
format!(
11181117
"Did you mean to change the environment to Python {version_part} with `uv run -p {version_part} python`?"
@@ -1123,7 +1122,7 @@ hint: If you are running a script with `{}` in the shebang, you may need to incl
11231122
)
11241123
};
11251124
anyhow!(
1126-
"`{}` not available in {} environment, which uses python `{}`. {}",
1125+
"`{}` not available in the {} environment, which uses python `{}`. {}",
11271126
executable,
11281127
env_type,
11291128
current_executable_python_version,

0 commit comments

Comments
 (0)