Improve 'Failed to create snapshot archive' warning message

(cherry picked from commit 5dcf348098)
This commit is contained in:
Michael Vines
2020-09-25 11:33:43 -07:00
parent 8e3882287a
commit 7ec38bd71c

View File

@ -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<T> = std::result::Result<T, SnapshotError>;