Skip to content

Commit

Permalink
Try #467:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] committed May 24, 2019
2 parents dcf0a7c + 90676b5 commit 39141f5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/runtime-c-api/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,8 @@ pub unsafe extern "C" fn wasmer_instantiate(
let result = wasmer_runtime::instantiate(bytes, &import_object);
let new_instance = match result {
Ok(instance) => instance,
Err(_error) => {
// TODO the trait bound `wasmer_runtime::error::Error: std::error::Error` is not satisfied
//update_last_error(error);
update_last_error(CApiError {
msg: "error instantiating".to_string(),
});
Err(error) => {
update_last_error(error);
return wasmer_result_t::WASMER_ERROR;
}
};
Expand Down

0 comments on commit 39141f5

Please sign in to comment.