We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14a7aa commit 480ff7dCopy full SHA for 480ff7d
cap-primitives/src/windows/fs/errors.rs
@@ -8,12 +8,12 @@ pub(crate) fn no_such_file_or_directory() -> io::Error {
8
9
#[cold]
10
pub(crate) fn is_directory() -> io::Error {
11
- io::Error::new(io::ErrorKind::Other, "expected non-directory")
+ io::Error::from_raw_os_error(winerror::ERROR_DIRECTORY_NOT_SUPPORTED as i32)
12
}
13
14
15
pub(crate) fn is_not_directory() -> io::Error {
16
- io::Error::new(io::ErrorKind::Other, "expected directory")
+ io::Error::from_raw_os_error(winerror::ERROR_DIRECTORY as i32)
17
18
19
0 commit comments