mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-29 09:51:19 +00:00
Merge pull request #1148 from Hywan/fix-runtime-c-api-error-message
fix(runtime-c-api) Fix error message.
This commit is contained in:
commit
2a2a3585d7
@ -704,7 +704,7 @@ pub unsafe extern "C" fn wasmer_trap(
|
|||||||
) -> wasmer_result_t {
|
) -> wasmer_result_t {
|
||||||
if ctx.is_null() {
|
if ctx.is_null() {
|
||||||
update_last_error(CApiError {
|
update_last_error(CApiError {
|
||||||
msg: "ctx ptr is null in wasmer_import_trap".to_string(),
|
msg: "ctx ptr is null in wasmer_trap".to_string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
return wasmer_result_t::WASMER_ERROR;
|
return wasmer_result_t::WASMER_ERROR;
|
||||||
@ -712,7 +712,7 @@ pub unsafe extern "C" fn wasmer_trap(
|
|||||||
|
|
||||||
if error_message.is_null() {
|
if error_message.is_null() {
|
||||||
update_last_error(CApiError {
|
update_last_error(CApiError {
|
||||||
msg: "error_message is null in wasmer_import_trap".to_string(),
|
msg: "error_message is null in wasmer_trap".to_string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
return wasmer_result_t::WASMER_ERROR;
|
return wasmer_result_t::WASMER_ERROR;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user