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 ba56bc9 commit 82c01f6Copy full SHA for 82c01f6
cvmassistants/quote-generator/src/main.rs
@@ -139,12 +139,7 @@ fn main() -> Result<(), QuoteGeneratorError> {
139
let input = &args[1];
140
let input_bytes = input.as_bytes();
141
if input_bytes.len() > REPORT_DATA_SIZE {
142
- error!(
143
- "report_data must be at most {} bytes, got {} bytes",
144
- REPORT_DATA_SIZE,
145
- input_bytes.len()
146
- );
147
- process::exit(1);
+ return Err(QuoteGeneratorError::ReportDataTooLarge { max: REPORT_DATA_SIZE, actual: input_bytes.len() });
148
}
149
150
let mut report_bytes = [0u8; REPORT_DATA_SIZE];
0 commit comments