Fix error message consistency for broken virtual environments due to pyvenv.cfg (#8180)

This commit is contained in:
Zanie Blue 2024-10-14 13:22:30 -05:00 committed by GitHub
parent 581fab6597
commit da7ffd3357
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -39,9 +39,9 @@ pub struct PyVenvConfiguration {
pub enum Error {
#[error(transparent)]
Io(#[from] io::Error),
#[error("Broken virtualenv `{0}`: `pyvenv.cfg` is missing")]
#[error("Broken virtual environment `{0}`: `pyvenv.cfg` is missing")]
MissingPyVenvCfg(PathBuf),
#[error("Broken virtualenv `{0}`: `pyvenv.cfg` could not be parsed")]
#[error("Broken virtual environment `{0}`: `pyvenv.cfg` could not be parsed")]
ParsePyVenvCfg(PathBuf, #[source] io::Error),
}