Skip to content

Commit

Permalink
use Error::source
Browse files Browse the repository at this point in the history
  • Loading branch information
zeegomo committed May 25, 2021
1 parent f3d8571 commit 6dcf4d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bin/cli/recovery/tally.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ pub enum Error {
#[error("Block0 should be provided either from a path (block0-path) or an url (block0-url)")]
Block0Unavailable,

#[error("Could not load persistent logs from path: {0}")]
PersistenLogsLoadingError(std::io::Error),
#[error("Could not load persistent logs from path")]
PersistenLogsLoadingError(#[source] std::io::Error),

#[error("Could not load block0: {0}")]
Block0LoadingError(std::io::Error),
#[error("Could not load block0")]
Block0LoadingError(#[source] std::io::Error),
}

/// Recover the tally from fragment log files and the initial preloaded block0 binary file.
Expand Down

0 comments on commit 6dcf4d4

Please sign in to comment.