Cargo emits confusing errors when trying to use example crates #10173
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
C-bug
Category: bug
S-triage
Status: This issue is waiting on initial triage.
Problem
Cargo emits confusing errors when trying to use example crates
Steps
When you have an example crate, and define it in the main crate's cargo.toml with
commands like
cargo check --examples
gives useless errors like:error: couldn't read examples/example1: Access is denied. (os error 5)
on Windows,error: couldn't read examples/example1: Is a directory (os error 21)
on Ubuntu/MacOSPossible Solution(s)
It would be nice if this would Just Work. But otherwise it would be friendlier to nudge users to something like
rather than emitting useless error messages
Notes
No response
Version
The text was updated successfully, but these errors were encountered: