Improve 'Failed to create snapshot archive' warning message
This commit is contained in:
parent
c9d12ad410
commit
5dcf348098
|
@ -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>;
|
||||
|
|
Loading…
Reference in New Issue