-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bridge: Fix fsreplace1 crash for error cases
Catch errors from `rename()` and translate them into an `access-denied` (e.g. the specified `path` is a directory) or `not-found` (directory is deleted underneath us) channel error instead of crashing the bridge. Likewise, intercept `FileNotFoundError` when trying to create a temp file in a nonexisiting directory. That previously returned `internal-error`, but it's really not. We don't have a really good exisiting problem code, but `access-denied` is closest.
- Loading branch information
1 parent
643dc12
commit 5df5458
Showing
2 changed files
with
29 additions
and
3 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