diff --git a/cosmwasm/enclaves/execute/src/registration/attestation.rs b/cosmwasm/enclaves/execute/src/registration/attestation.rs index 1c2157154..71747c757 100644 --- a/cosmwasm/enclaves/execute/src/registration/attestation.rs +++ b/cosmwasm/enclaves/execute/src/registration/attestation.rs @@ -170,7 +170,8 @@ pub fn validate_enclave_version( let _result = ecc_handle.close(); if verify_ra_cert(&cert_der, None, true).is_err() { - sgx_status_t::SGX_ERROR_UNEXPECTED + error!("Error verifying report."); + return Err(sgx_status_t::SGX_ERROR_UNEXPECTED); } Ok(())