We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b783b71 commit 5553fa9Copy full SHA for 5553fa9
1 file changed
src/hyperlight_wasm_runtime/src/lib.rs
@@ -38,6 +38,8 @@ extern crate wasmtime;
38
#[cfg(feature = "wasmtime_lts")]
39
extern crate wasmtime_lts as wasmtime;
40
41
+// Keep this conversion local: HyperlightGuestError is owned by hyperlight-guest,
42
+// so this crate cannot implement From<wasmtime::Error> for it.
43
pub(crate) fn map_wasmtime_error(error: wasmtime::Error) -> HyperlightGuestError {
44
HyperlightGuestError::new(ErrorCode::GuestError, error.to_string())
45
}
0 commit comments