You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Linux: Io(Error { repr: Os { code: 2, message: "No such file or directory" } })
Windows: Generic("Input watch path is neither a file nor a directory.")
macOS: PathNotFound
Any opinions?
The text was updated successfully, but these errors were encountered:
However, it will still be a problem in race conditions when the file disappears between the time the frontend checks for it and the backend attempts to watch it. That will need to be fixed somehow, but I haven't yet figured out what path I want to take for it.
passcod
changed the title
All back-ends report different errors when trying to watch non-existing file or directory
When trying to watch non-existing file or directory, report a single error kind instead of the native one
Dec 28, 2017
- NotImplemented, convenience variant to be used in Backend development
- Unavailable, to indicate at runtime that a Backend's upstream is
unavailable
- NonExistent, as a common error from an upstream that indicates one or
more path passed was not found by the upstream. See #110
This is solved in v5 as file-does-not-exist errors are a specific variant now.
The race condition problem is also solved as both a core and a backend concern. Basically because of #64 and how that's implemented we retry creating backends if it fails on specific paths, without those specific paths.
Closing before v5 release to clear things up a bit.
Linux:
Io(Error { repr: Os { code: 2, message: "No such file or directory" } })
Windows:
Generic("Input watch path is neither a file nor a directory.")
macOS:
PathNotFound
Any opinions?
The text was updated successfully, but these errors were encountered: