jets: replace manual bail:exit call

This commit is contained in:
Alex Shelkovnykov 2024-02-08 12:37:22 +09:00
parent 852f033d4e
commit 7f5d8b57e1

View File

@ -234,8 +234,7 @@ pub mod util {
}
pub fn slot(noun: Noun, axis: u64) -> Result {
noun.slot(axis)
.map_err(|_e| JetErr::Fail(Error::Deterministic(Mote::Exit, D(0))))
noun.slot(axis).map_err(|_e| BAIL_EXIT)
}
/// Extract a bloq and check that it's computable by the current system