File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -411,14 +411,26 @@ pub fn download_or_update_course_exercises(
411411 } ;
412412 }
413413
414- progress_reporter:: finish_stage :: < ClientUpdateData > (
414+ let finish_message = if failed. is_empty ( ) {
415+ if successful. len ( ) == 0 && exercises_len == 0 {
416+ "Exercises are already up-to-date!" . to_string ( )
417+ } else {
418+ format ! (
419+ "Successfully downloaded {} out of {} exercises." ,
420+ successful. len( ) ,
421+ exercises_len
422+ )
423+ }
424+ } else {
415425 format ! (
416- "Successfully downloaded {} out of {} exercises. " ,
426+ "Downloaded {} out of {} exercises ({} failed) " ,
417427 successful. len( ) ,
418- exercises_len
419- ) ,
420- None ,
421- ) ;
428+ exercises_len,
429+ failed. len( ) ,
430+ )
431+ } ;
432+
433+ progress_reporter:: finish_stage :: < ClientUpdateData > ( finish_message, None ) ;
422434
423435 let downloaded = successful
424436 . into_iter ( )
You can’t perform that action at this time.
0 commit comments