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:
konsti 2024-05-21 13:21:20 +02:00 committed by GitHub
parent 906f653062
commit 2c4088a518
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View file

@ -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.