We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427266f commit fc8e1bbCopy full SHA for fc8e1bb
cvmassistants/quote-generator/src/main.rs
@@ -29,7 +29,7 @@
29
*
30
*/
31
32
-use log::{debug, info};
+use log::{debug, error, info};
33
use std::env;
34
use std::fs;
35
mod error;
@@ -121,7 +121,10 @@ fn create_quote(report_data: &tdx_attest_rs::tdx_report_data_t) -> Result<Vec<u8
121
None => Err(QuoteGeneratorError::TdxQuoteEmpty),
122
}
123
},
124
- _ => Err(QuoteGeneratorError::TdxQuoteFailed),
+ _ => {
125
+ error!("Failed to get TDX quote: {:?}", result);
126
+ Err(QuoteGeneratorError::TdxQuoteFailed) // _tdx_attest_error_t does not implement std::error::Error
127
+ }
128
129
130
0 commit comments