Fix error message consistency for broken virtual environments due to pyvenv.cfg (#8180)
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user