Skip to content

Commit 71e926e

Browse files
committed
fix: tests
1 parent 84fd9ca commit 71e926e

3 files changed

Lines changed: 593 additions & 788 deletions

File tree

host/src/vfs/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,12 @@ impl<'a> filesystem::types::HostDescriptor for VfsCtxView<'a> {
713713
_path_flags: PathFlags,
714714
path: String,
715715
) -> FsResult<DescriptorStat> {
716-
Ok(self.node_at(self_, &path)?.unwrap().read().unwrap().stat())
716+
let node = match self.node_at(self_, &path)? {
717+
Some(node) => node,
718+
None => return Err(FsError::trap(ErrorCode::NoEntry)),
719+
};
720+
721+
Ok(node.read().unwrap().stat())
717722
}
718723

719724
async fn set_times_at(

0 commit comments

Comments
 (0)