Fix bug on unix again

This commit is contained in:
Laurenz 2021-08-13 19:37:51 +02:00
parent f6814b7732
commit fcb4e45118

View File

@ -180,7 +180,7 @@ impl Loader for FsLoader {
let handle = Handle::from_file(file)?;
Ok(FileHash(fxhash::hash64(&handle)))
} else {
Err(io::Error::new(io::ErrorKind::Other, "not a file"))
Err(io::ErrorKind::NotFound.into())
}
}