diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-08-13 19:37:51 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-08-13 19:37:51 +0200 |
| commit | fcb4e451186067cdf6efe3c14cbfa7561b366a6c (patch) | |
| tree | 97227d6798fb1294035e6b83cc3827a31567e58f | |
| parent | f6814b7732931ab0f1bfc4028122522f53d6af0c (diff) | |
Fix bug on unix again
| -rw-r--r-- | src/loading/fs.rs | 2 |
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()) } } |
