Fix bug on unix again
This commit is contained in:
parent
f6814b7732
commit
fcb4e45118
|
|
@ -180,7 +180,7 @@ impl Loader for FsLoader {
|
||||||
let handle = Handle::from_file(file)?;
|
let handle = Handle::from_file(file)?;
|
||||||
Ok(FileHash(fxhash::hash64(&handle)))
|
Ok(FileHash(fxhash::hash64(&handle)))
|
||||||
} else {
|
} else {
|
||||||
Err(io::Error::new(io::ErrorKind::Other, "not a file"))
|
Err(io::ErrorKind::NotFound.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue