Skip to content

Commit 2cdf69f

Browse files
outofxxx0xverinKailai-Wang
authored
using EnclaveError (#2626)
Co-authored-by: 0xverin <104152026+0xverin@users.noreply.github.com> Co-authored-by: Kai <7630809+Kailai-Wang@users.noreply.github.com>
1 parent 97368e0 commit 2cdf69f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tee-worker/core-primitives/attestation-handler/src/attestation_handler.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#[cfg(all(not(feature = "std"), feature = "sgx"))]
3131
use crate::sgx_reexport_prelude::*;
3232

33-
use crate::{cert, Error as EnclaveError, Error, Result as EnclaveResult};
33+
use crate::{cert, Error as EnclaveError, Result as EnclaveResult};
3434
use codec::Encode;
3535
use core::{convert::TryInto, default::Default};
3636
use itertools::Itertools;
@@ -195,7 +195,7 @@ where
195195
" [Enclave] failed to write RA file ({}), status: {:?}",
196196
RA_DUMP_CERT_DER_FILE, err
197197
);
198-
return Err(Error::IoError(err))
198+
return Err(EnclaveError::IoError(err))
199199
}
200200
info!(" [Enclave] dumped ra cert to {}", RA_DUMP_CERT_DER_FILE);
201201
Ok(())
@@ -220,7 +220,7 @@ where
220220
" [Enclave] failed to write RA file ({}), status: {:?}",
221221
RA_DUMP_CERT_DER_FILE, err
222222
);
223-
return Err(Error::IoError(err))
223+
return Err(EnclaveError::IoError(err))
224224
}
225225
info!(" [Enclave] dumped ra cert to {}", RA_DUMP_CERT_DER_FILE);
226226
Ok(())

0 commit comments

Comments
 (0)