Skip to content

Commit

Permalink
add path to notification decode error
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin committed Oct 1, 2024
1 parent 806d133 commit c1fe123
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/exex/exex/src/wal/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ impl Storage {

// Deserialize using the bincode- and msgpack-compatible serde wrapper
let notification: reth_exex_types::serde_bincode_compat::ExExNotification<'_> =
rmp_serde::decode::from_read(&mut file)?;
rmp_serde::decode::from_read(&mut file).map_err(|err| {
eyre::eyre!("failed to decode notification from {file_path:?}: {err:?}")
})?;

Ok(Some(notification.into()))
}
Expand Down

0 comments on commit c1fe123

Please sign in to comment.