-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Path extensions error are not really user-friendly because they don't indicate which path failed, only the extension (if we're lucky that an extension can be parsed from the file). We should probably indicate the complete path failing so that the user can take action instead of lamenting on the meaninglessness of life :)
Error variants which should have the path:
UnknownFileExtensionInvalidFileExtensionCannotCanonicalizeDirectory/File/IgnorePath/CacheBustedDirFilePathIsNotUtf8InvalidUnicodeInDirectoryName/EntryNameGzip/ZstdCannotGetMetadata
Apparently GlobError already has the path and an inner std::io::Error so we could use that instead of adding a variant. But it's actually semantically reading either file metadata or folder entries.
It may be clearer to have:
- the path
- the inner
std::io::Error - an optional operation context (cache bust, ignore paths)
paolobarbolini and ThinkerDreamer
Metadata
Metadata
Assignees
Labels
No labels