mirror of
https://github.com/astral-sh/uv
synced 2026-01-23 06:20:12 -05:00
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