Skip to content

Commit

Permalink
Merge pull request #1148 from Hywan/fix-runtime-c-api-error-message
Browse files Browse the repository at this point in the history
fix(runtime-c-api) Fix error message.
  • Loading branch information
syrusakbary authored Jan 15, 2020
2 parents 50acd8b + 7a16828 commit 2a2a358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/runtime-c-api/src/import/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,15 +704,15 @@ 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;
}

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;
Expand Down

0 comments on commit 2a2a358

Please sign in to comment.