consensus_encoding: fix up error message
What changed, and why it matters
This commit changes a single error message string in a test file from 'Error in first array: ...' to 'Composite error: ...'. It is purely a wording cleanup in test code and has no security relevance.
No action required; this is a non-security test-only string change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies consensus_encoding/tests/composition.rs, updating the Display implementation for a test-only CompositeError enum. The change is a literal string replacement in an error message used only in tests; no logic, parsing, encoding, or validation behavior is altered.
Changed components
consensus_encoding/tests/composition.rsInspect captured patch +1 / −1
diff --git a/consensus_encoding/tests/composition.rs b/consensus_encoding/tests/composition.rs
index aa055b65..611aee1a 100644
--- a/consensus_encoding/tests/composition.rs
+++ b/consensus_encoding/tests/composition.rs
@@ -40,7 +40,7 @@ impl From<UnexpectedEofError> for CompositeError {
impl core::fmt::Display for CompositeError {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
match self {
- CompositeError::Eof(eof) => write!(f, "Error in first array: {}", eof),
+ CompositeError::Eof(eof) => write!(f, "Composite error: {}", eof),
}
}
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.