Fix error message consistency for broken virtual environments due to pyvenv.cfg (#8180)
This commit is contained in:
@@ -67,7 +67,7 @@ pub enum Error {
|
||||
RecordFile(String),
|
||||
#[error("RECORD file is invalid")]
|
||||
RecordCsv(#[from] csv::Error),
|
||||
#[error("Broken virtualenv: {0}")]
|
||||
#[error("Broken virtual environment: {0}")]
|
||||
BrokenVenv(String),
|
||||
#[error(
|
||||
"Unable to create Windows launcher for: {0} (only x86_64, x86, and arm64 are supported)"
|
||||
|
||||
@@ -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