fix(runtime-c-api) Fix error message.

This commit is contained in:
Ivan Enderlin
2020-01-15 12:50:18 +01:00
parent 50acd8ba98
commit 7a16828e6e

View File

@ -704,7 +704,7 @@ pub unsafe extern "C" fn wasmer_trap(
) -> wasmer_result_t {
if ctx.is_null() {
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;
@ -712,7 +712,7 @@ pub unsafe extern "C" fn wasmer_trap(
if error_message.is_null() {
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;