We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45c7d58 commit 2e94a2aCopy full SHA for 2e94a2a
1 file changed
graph/src/blockchain/types.rs
@@ -186,7 +186,10 @@ impl TryFrom<(&[u8], i64)> for BlockPtr {
186
H256::from_slice(bytes)
187
} else {
188
return Err(anyhow!(
189
- "invalid H256 value `{}` has {} bytes instead of {}"
+ "invalid H256 value `{}` has {} bytes instead of {}",
190
+ hex::encode(bytes),
191
+ bytes.len(),
192
+ H256::len_bytes()
193
));
194
};
195
Ok(BlockPtr::from((hash, number)))
0 commit comments