From 227804c30638500a5c4803a1c071d2a286062ed8 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 26 Sep 2020 01:12:39 +0000 Subject: [PATCH] Improve 'Failed to create snapshot archive' warning message (bp #12496) (#12499) * Improve 'Failed to create snapshot archive' warning message (cherry picked from commit 5dcf3480986a87cc9c80788c1d8ccd8f0cb44a8d) # Conflicts: # ledger/src/snapshot_utils.rs * Update snapshot_utils.rs Co-authored-by: Michael Vines --- ledger/src/snapshot_utils.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ledger/src/snapshot_utils.rs b/ledger/src/snapshot_utils.rs index 5b1b3fc733..49065fe6c7 100644 --- a/ledger/src/snapshot_utils.rs +++ b/ledger/src/snapshot_utils.rs @@ -107,13 +107,13 @@ pub struct SlotSnapshotPaths { #[derive(Error, Debug)] pub enum SnapshotError { - #[error("I/O error")] + #[error("I/O error: {0}")] IO(#[from] std::io::Error), - #[error("serialization error")] + #[error("serialization error: {0}")] Serialize(#[from] Box), - #[error("file system error")] + #[error("file system error: {0}")] FsExtra(#[from] fs_extra::error::Error), #[error("archive generation failure {0}")] @@ -122,7 +122,7 @@ pub enum SnapshotError { #[error("storage path symlink is invalid")] StoragePathSymlinkInvalid, - #[error("Unpack error")] + #[error("Unpack error: {0}")] UnpackError(#[from] UnpackError), } pub type Result = std::result::Result;