From 7ec38bd71c1af9d3d726d738d46772c8b5ee5205 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Fri, 25 Sep 2020 11:33:43 -0700 Subject: [PATCH] Improve 'Failed to create snapshot archive' warning message (cherry picked from commit 5dcf3480986a87cc9c80788c1d8ccd8f0cb44a8d) --- runtime/src/snapshot_utils.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/snapshot_utils.rs b/runtime/src/snapshot_utils.rs index 1d73eaf2b5..9448bc0500 100644 --- a/runtime/src/snapshot_utils.rs +++ b/runtime/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] bincode::Error), - #[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;