File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
mithril-client/src/services Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -107,16 +107,14 @@ impl MithrilClientSnapshotService {
107
107
}
108
108
}
109
109
110
- fn check_disk_space_error ( & self , error : StdError ) -> StdResult < ( ) > {
110
+ fn check_disk_space_error ( & self , error : StdError ) -> StdResult < StdError > {
111
111
if let Some ( SnapshotUnpackerError :: NotEnoughSpace {
112
112
left_space : _,
113
113
pathdir : _,
114
114
archive_size : _,
115
115
} ) = error. downcast_ref :: < SnapshotUnpackerError > ( )
116
116
{
117
- warn ! ( "{error}" ) ;
118
-
119
- Ok ( ( ) )
117
+ Ok ( error)
120
118
} else {
121
119
Err ( error)
122
120
}
@@ -220,7 +218,8 @@ impl SnapshotService for MithrilClientSnapshotService {
220
218
let unpacker = SnapshotUnpacker ;
221
219
222
220
if let Err ( e) = unpacker. check_prerequisites ( & db_dir, snapshot_entity. artifact . size ) {
223
- self . check_disk_space_error ( e) ?;
221
+ progress_bar
222
+ . report_step ( 1 , & format ! ( "Warning: {}" , self . check_disk_space_error( e) ?) ) ?;
224
223
}
225
224
226
225
std:: fs:: create_dir_all ( & db_dir) . with_context ( || {
You can’t perform that action at this time.
0 commit comments