summaryrefslogtreecommitdiff
path: root/src/loading/fs.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-08-13 19:37:51 +0200
committerLaurenz <laurmaedje@gmail.com>2021-08-13 19:37:51 +0200
commitfcb4e451186067cdf6efe3c14cbfa7561b366a6c (patch)
tree97227d6798fb1294035e6b83cc3827a31567e58f /src/loading/fs.rs
parentf6814b7732931ab0f1bfc4028122522f53d6af0c (diff)
Fix bug on unix again
Diffstat (limited to 'src/loading/fs.rs')
-rw-r--r--src/loading/fs.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loading/fs.rs b/src/loading/fs.rs
index 9289519c..8d905ed2 100644
--- a/src/loading/fs.rs
+++ b/src/loading/fs.rs
@@ -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())
}
}