From ced065e1b12f2af43c9b337149cc8e063c81020d Mon Sep 17 00:00:00 2001 From: valdok Date: Tue, 7 May 2024 09:51:00 +0000 Subject: [PATCH] build fix --- cosmwasm/enclaves/execute/src/registration/attestation.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(())