Skip to content

Commit ced065e

Browse files
author
valdok
committed
build fix
1 parent 1810e79 commit ced065e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cosmwasm/enclaves/execute/src/registration/attestation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ pub fn validate_enclave_version(
170170
let _result = ecc_handle.close();
171171

172172
if verify_ra_cert(&cert_der, None, true).is_err() {
173-
sgx_status_t::SGX_ERROR_UNEXPECTED
173+
error!("Error verifying report.");
174+
return Err(sgx_status_t::SGX_ERROR_UNEXPECTED);
174175
}
175176

176177
Ok(())

0 commit comments

Comments
 (0)