Skip to content

Commit 64712b3

Browse files
committed
Don't panic on err while getting property
Signed-off-by: Alex Snaps <[email protected]>
1 parent 5dcba70 commit 64712b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hostcalls.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ pub fn get_property(path: Vec<&str>) -> Result<Option<Bytes>, Status> {
416416
}
417417
}
418418
Status::NotFound => Ok(None),
419-
status => panic!("unexpected status: {}", status as u32),
419+
status => Err(status),
420420
}
421421
}
422422
}

0 commit comments

Comments
 (0)