mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Fix error message ordering for pyvenv.cfg
version conflict (#14329)
These were reversed, and we're missing an "a".
This commit is contained in:
parent
ec18f4813a
commit
f9d3f8ea3b
1 changed files with 2 additions and 2 deletions
|
@ -769,7 +769,7 @@ pub(crate) enum EnvironmentIncompatibilityError {
|
||||||
RequiresPython(EnvironmentKind, RequiresPython),
|
RequiresPython(EnvironmentKind, RequiresPython),
|
||||||
|
|
||||||
#[error(
|
#[error(
|
||||||
"The interpreter in the {0} environment has different version ({1}) than it was created with ({2})"
|
"The interpreter in the {0} environment has a different version ({1}) than it was created with ({2})"
|
||||||
)]
|
)]
|
||||||
PyenvVersionConflict(EnvironmentKind, Version, Version),
|
PyenvVersionConflict(EnvironmentKind, Version, Version),
|
||||||
}
|
}
|
||||||
|
@ -785,8 +785,8 @@ fn environment_is_usable(
|
||||||
if let Some((cfg_version, int_version)) = environment.get_pyvenv_version_conflict() {
|
if let Some((cfg_version, int_version)) = environment.get_pyvenv_version_conflict() {
|
||||||
return Err(EnvironmentIncompatibilityError::PyenvVersionConflict(
|
return Err(EnvironmentIncompatibilityError::PyenvVersionConflict(
|
||||||
kind,
|
kind,
|
||||||
cfg_version,
|
|
||||||
int_version,
|
int_version,
|
||||||
|
cfg_version,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue