-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use fs-err in turborepo fs related libs (#5517)
### Description Swaps our usage of various `fs` methods to use `fs-err` instead. To quote the `fs-err` docs: > Using [std::fs](https://doc.rust-lang.org/stable/std/fs/), if this code fails: > > `let file = File::open("does not exist.txt")?;` > > The error message that Rust gives you isn't very useful: > > `The system cannot find the file specified. (os error 2)` > > ...but if we use `fs-err` instead, our error contains more actionable information: > > ```failed to open file `does not exist.txt` > caused by: The system cannot find the file specified. (os error 2)``` ### Testing Instructions Existing unit tests pass Co-authored-by: Chris Olszewski <Chris Olszewski>
- Loading branch information
1 parent
f3a36e7
commit b6bb8fe
Showing
6 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters