forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Report failures to add permissions with JavaIoFileSystem
Previously the return value of the `File#setX` functions was not checked, thus masking potential errors. Since these functions are expected to fail on Windows if asked to remove a permission, errors are only reported when attempting to add one. Also removes misleading `throws` declarations that may mask similar issues of this type. Closes bazelbuild#18004. PiperOrigin-RevId: 523454138 Change-Id: Ia85db5e912d07af1ca6f7cd4b8e2d784395e7811
- Loading branch information
1 parent
bfdff54
commit 89a3d5e
Showing
2 changed files
with
55 additions
and
48 deletions.
There are no files selected for viewing
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