mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-29 11:07:59 +00:00
Improve error message when editable requirement doesn't exist (#1024)
Making these a lot clearer in the common case by reducing the depth of the error.
This commit is contained in:
parent
53b7e3cb4f
commit
d9cc9dbf88
7 changed files with 34 additions and 18 deletions
|
|
@ -992,10 +992,10 @@ impl<'a, T: BuildContext> SourceDistCachedBuilder<'a, T> {
|
|||
BuildKind::Editable,
|
||||
)
|
||||
.await
|
||||
.map_err(|err| SourceDistError::Build(editable.to_string(), err))?
|
||||
.map_err(|err| SourceDistError::BuildEditable(editable.to_string(), err))?
|
||||
.wheel(editable_wheel_dir)
|
||||
.await
|
||||
.map_err(|err| SourceDistError::Build(editable.to_string(), err))?;
|
||||
.map_err(|err| SourceDistError::BuildEditable(editable.to_string(), err))?;
|
||||
let filename = WheelFilename::from_str(&disk_filename)?;
|
||||
// We finally have the name of the package and can construct the dist
|
||||
let dist = Dist::Source(SourceDist::Path(PathSourceDist {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue