File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
crates/uv/src/commands/project Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1110,9 +1110,8 @@ hint: If you are running a script with `{}` in the shebang, you may need to incl
1110
1110
let version_part = executable. strip_prefix ( "python" ) . unwrap_or ( "" ) ;
1111
1111
let current_executable_python_version = base_interpreter. python_version ( ) . only_release ( ) ;
1112
1112
// 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 " } ;
1114
1114
1115
- // Construct the message dynamically
1116
1115
let message_suffix = if project_found {
1117
1116
format ! (
1118
1117
"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
1123
1122
)
1124
1123
} ;
1125
1124
anyhow ! (
1126
- "`{}` not available in {} environment, which uses python `{}`. {}" ,
1125
+ "`{}` not available in the {} environment, which uses python `{}`. {}" ,
1127
1126
executable,
1128
1127
env_type,
1129
1128
current_executable_python_version,
You can’t perform that action at this time.
0 commit comments