Improve 'Failed to create snapshot archive' warning message

This commit is contained in:
Michael Vines 2020-09-25 11:33:43 -07:00 committed by mergify[bot]
parent c9d12ad410
commit 5dcf348098
1 changed files with 4 additions and 4 deletions

View File

@ -107,13 +107,13 @@ pub struct SlotSnapshotPaths {
#[derive(Error, Debug)] #[derive(Error, Debug)]
pub enum SnapshotError { pub enum SnapshotError {
#[error("I/O error")] #[error("I/O error: {0}")]
IO(#[from] std::io::Error), IO(#[from] std::io::Error),
#[error("serialization error")] #[error("serialization error: {0}")]
Serialize(#[from] bincode::Error), Serialize(#[from] bincode::Error),
#[error("file system error")] #[error("file system error: {0}")]
FsExtra(#[from] fs_extra::error::Error), FsExtra(#[from] fs_extra::error::Error),
#[error("archive generation failure {0}")] #[error("archive generation failure {0}")]
@ -122,7 +122,7 @@ pub enum SnapshotError {
#[error("storage path symlink is invalid")] #[error("storage path symlink is invalid")]
StoragePathSymlinkInvalid, StoragePathSymlinkInvalid,
#[error("Unpack error")] #[error("Unpack error: {0}")]
UnpackError(#[from] UnpackError), UnpackError(#[from] UnpackError),
} }
pub type Result<T> = std::result::Result<T, SnapshotError>; pub type Result<T> = std::result::Result<T, SnapshotError>;