summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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())
}
}