Merge pull request #1148 from Hywan/fix-runtime-c-api-error-message

fix(runtime-c-api) Fix error message.
This commit is contained in:
Syrus Akbary 2020-01-15 12:53:05 +01:00 committed by GitHub
commit 2a2a3585d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;