Skip to content

Commit ba56bc9

Browse files
committed
refactor: update writing quote to propagate error
1 parent b36149d commit ba56bc9

File tree

1 file changed

+1
-1
lines changed
  • cvmassistants/quote-generator/src

1 file changed

+1
-1
lines changed

cvmassistants/quote-generator/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ fn main() -> Result<(), QuoteGeneratorError> {
156156
debug!("TDX report: {:?}", tdx_report.d);
157157
let quote = create_quote(&report_data)?;
158158
debug!("Quote: {:?}", quote);
159-
fs::write(QUOTE_FILE_NAME, quote).expect("Unable to write quote file");
159+
fs::write(QUOTE_FILE_NAME, quote)?;
160160
info!("Quote successfully written to {}", QUOTE_FILE_NAME);
161161

162162
Ok(())

0 commit comments

Comments
 (0)