wiggle traps

This commit is contained in:
Pat Hickey
2021-01-07 14:43:56 -08:00
parent 13cd7a4a8e
commit c2a715ca54
2 changed files with 2 additions and 21 deletions

View File

@@ -30,7 +30,7 @@ impl types::GuestErrorConversion for WasiCtx {
}
impl types::UserErrorConversion for WasiCtx {
fn errno_from_error(&self, e: Error) -> Result<types::Errno, String> {
fn errno_from_error(&self, e: Error) -> Result<types::Errno, wiggle::Trap> {
debug!("Error: {:?}", e);
Ok(e.into())
}
@@ -885,7 +885,7 @@ impl<'a> wasi_snapshot_preview1::WasiSnapshotPreview1 for WasiCtx {
unimplemented!()
}
fn proc_exit(&self, _rval: types::Exitcode) -> Result<(), ()> {
fn proc_exit(&self, _rval: types::Exitcode) -> wiggle::Trap {
unimplemented!()
}