Skip to content

Commit e311dee

Browse files
committed
Improve error messages
1 parent 8e60052 commit e311dee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/attestation.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ impl Measurements {
4848
.ok_or(MeasurementFormatError::MissingValue("MRTD".to_string()))?,
4949
rtmr0: *measurements_map
5050
.get(&1)
51-
.ok_or(MeasurementFormatError::MissingValue("MRTD".to_string()))?,
51+
.ok_or(MeasurementFormatError::MissingValue("RTMR0".to_string()))?,
5252
},
5353
cvm_image: CvmImageMeasurements {
5454
rtmr1: *measurements_map
5555
.get(&2)
56-
.ok_or(MeasurementFormatError::MissingValue("MRTD".to_string()))?,
56+
.ok_or(MeasurementFormatError::MissingValue("RTMR1".to_string()))?,
5757
rtmr2: *measurements_map
5858
.get(&3)
59-
.ok_or(MeasurementFormatError::MissingValue("MRTD".to_string()))?,
59+
.ok_or(MeasurementFormatError::MissingValue("RTMR2".to_string()))?,
6060
rtmr3: *measurements_map
6161
.get(&4)
62-
.ok_or(MeasurementFormatError::MissingValue("MRTD".to_string()))?,
62+
.ok_or(MeasurementFormatError::MissingValue("RTMR3".to_string()))?,
6363
},
6464
})
6565
}

0 commit comments

Comments
 (0)