mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
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)?;
|
||||
Ok(FileHash(fxhash::hash64(&handle)))
|
||||
} else {
|
||||
Err(io::Error::new(io::ErrorKind::Other, "not a file"))
|
||||
Err(io::ErrorKind::NotFound.into())
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user