From 7a16828e6e564d523b0130904c428fd6575c5109 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 15 Jan 2020 12:50:18 +0100 Subject: [PATCH] fix(runtime-c-api) Fix error message. --- lib/runtime-c-api/src/import/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runtime-c-api/src/import/mod.rs b/lib/runtime-c-api/src/import/mod.rs index a2044c06041..02124e0635c 100644 --- a/lib/runtime-c-api/src/import/mod.rs +++ b/lib/runtime-c-api/src/import/mod.rs @@ -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;