mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-25 17:38:21 +00:00
Improve DirWithoutEntrypoint error message (#3690)
Ran into this and couldn't tell what the problem was without the path attached.
This commit is contained in:
parent
906f653062
commit
2c4088a518
3 changed files with 6 additions and 4 deletions
|
|
@ -978,7 +978,7 @@ impl<'a, T: BuildContext> SourceDistributionBuilder<'a, T> {
|
|||
let Some(modified) =
|
||||
ArchiveTimestamp::from_source_tree(&resource.path).map_err(Error::CacheRead)?
|
||||
else {
|
||||
return Err(Error::DirWithoutEntrypoint);
|
||||
return Err(Error::DirWithoutEntrypoint(resource.path.to_path_buf()));
|
||||
};
|
||||
|
||||
// Read the existing metadata from the cache.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue