Skip to content

Commit 2e94a2a

Browse files
authored
graph: Add missing arguments to error msg (#3107)
1 parent 45c7d58 commit 2e94a2a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graph/src/blockchain/types.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ impl TryFrom<(&[u8], i64)> for BlockPtr {
186186
H256::from_slice(bytes)
187187
} else {
188188
return Err(anyhow!(
189-
"invalid H256 value `{}` has {} bytes instead of {}"
189+
"invalid H256 value `{}` has {} bytes instead of {}",
190+
hex::encode(bytes),
191+
bytes.len(),
192+
H256::len_bytes()
190193
));
191194
};
192195
Ok(BlockPtr::from((hash, number)))

0 commit comments

Comments
 (0)