File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ pub enum SnapshotError {
94
94
impl Snapshotter for CompressedArchiveSnapshotter {
95
95
fn snapshot ( & self , archive_name : & str ) -> StdResult < OngoingSnapshot > {
96
96
let archive_path = self . ongoing_snapshot_directory . join ( archive_name) ;
97
- let filesize = self . create_and_verify_archive ( & archive_path) . map_err ( |err | {
97
+ let filesize = self . create_and_verify_archive ( & archive_path) . inspect_err ( |_err | {
98
98
if archive_path. exists ( ) {
99
99
if let Err ( remove_error) = std:: fs:: remove_file ( & archive_path) {
100
100
warn ! (
@@ -104,8 +104,6 @@ impl Snapshotter for CompressedArchiveSnapshotter {
104
104
) ;
105
105
}
106
106
}
107
-
108
- err
109
107
} ) . with_context ( || format ! ( "CompressedArchiveSnapshotter can not create and verify archive: '{}'" , archive_path. display( ) ) ) ?;
110
108
111
109
Ok ( OngoingSnapshot {
You can’t perform that action at this time.
0 commit comments