mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-21 20:51:32 +00:00
Fix new RuntimeError integration with the LLVM-backend
This commit is contained in:
@ -281,7 +281,7 @@ extern "C" fn signal_trap_handler(
|
||||
let mut should_unwind = false;
|
||||
let mut unwind_result: Option<Box<RuntimeError>> = None;
|
||||
let get_unwind_result = |uw_result: Option<Box<RuntimeError>>| -> Box<RuntimeError> {
|
||||
dbg!(uw_result)
|
||||
uw_result
|
||||
.unwrap_or_else(|| Box::new(RuntimeError::InvokeError(InvokeError::FailedWithNoError)))
|
||||
};
|
||||
|
||||
|
@ -602,8 +602,10 @@ pub(crate) fn call_func_with_index_inner(
|
||||
if success {
|
||||
Ok(())
|
||||
} else {
|
||||
let error: RuntimeError = dbg!(error_out)
|
||||
.map_or_else(|| RuntimeError::InvokeError(InvokeError::FailedWithNoError), Into::into);
|
||||
let error: RuntimeError = error_out.map_or_else(
|
||||
|| RuntimeError::InvokeError(InvokeError::FailedWithNoError),
|
||||
Into::into,
|
||||
);
|
||||
dbg!(&error);
|
||||
Err(error.into())
|
||||
}
|
||||
|
@ -590,7 +590,7 @@ macro_rules! impl_traits {
|
||||
) {
|
||||
Ok(Rets::from_ret_array(rets))
|
||||
} else {
|
||||
Err(dbg!(error_out).map_or_else(|| RuntimeError::InvokeError(InvokeError::FailedWithNoError), Into::into))
|
||||
Err(error_out.map_or_else(|| RuntimeError::InvokeError(InvokeError::FailedWithNoError), Into::into))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user