Fix error message ordering for pyvenv.cfg version conflict (#14329)

These were reversed, and we're missing an "a".
This commit is contained in:
Zanie Blue 2025-06-29 08:19:05 -05:00 committed by GitHub
parent ec18f4813a
commit f9d3f8ea3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -769,7 +769,7 @@ pub(crate) enum EnvironmentIncompatibilityError {
RequiresPython(EnvironmentKind, RequiresPython),
#[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),
}
@ -785,8 +785,8 @@ fn environment_is_usable(
if let Some((cfg_version, int_version)) = environment.get_pyvenv_version_conflict() {
return Err(EnvironmentIncompatibilityError::PyenvVersionConflict(
kind,
cfg_version,
int_version,
cfg_version,
));
}