Skip to content

Commit 1d89a8b

Browse files
authored
Merge pull request #1653 from scrtlabs/dcap-09
build fix
2 parents 1810e79 + ced065e commit 1d89a8b

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)