checkpoint

This commit is contained in:
John Smith
2022-06-06 13:27:16 -04:00
parent 1eb26758e9
commit 182af30b97
2 changed files with 9 additions and 17 deletions

View File

@@ -1062,8 +1062,13 @@ impl NetworkManager {
}
// Decode envelope header (may fail signature validation)
let envelope =
Envelope::from_signed_data(data).map_err(|_| "envelope failed to decode".to_owned())?;
let envelope = Envelope::from_signed_data(data).map_err(|_| {
format!(
"envelope failed to decode from {:?}: {} bytes",
descriptor,
data.len()
)
})?;
// Get routing table and rpc processor
let (routing_table, rpc) = {