diff --git a/src/rlp.rs b/src/rlp.rs index 2f97390c7..a0fe455b5 100644 --- a/src/rlp.rs +++ b/src/rlp.rs @@ -41,7 +41,7 @@ impl ItemInfo { pub enum DecoderError { FromBytesError(FromBytesError), RlpIsTooShort, - RlpIsNotArray, + RlpExpectedToBeArray, BadRlp, } impl StdError for DecoderError { @@ -72,7 +72,7 @@ impl <'a>Rlp<'a> { /// paren container caches searched position pub fn at(&self, index: usize) -> Result, DecoderError> { if !self.is_array() { - return Err(DecoderError::RlpIsNotArray); + return Err(DecoderError::RlpExpectedToBeArray); } // move to cached position if it's index is less or equal to