File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,6 @@ fn main() -> Result<ExitCode> {
152152 }
153153
154154 stdout. write_all ( b"\n \n " ) ?;
155-
156155 let pending = app_state. n_pending ( ) ;
157156 if pending == 1 {
158157 stdout. write_all ( b"One exercise pending: " ) ?;
@@ -167,6 +166,7 @@ fn main() -> Result<ExitCode> {
167166 . current_exercise ( )
168167 . terminal_file_link ( & mut stdout) ?;
169168 stdout. write_all ( b"\n " ) ?;
169+
170170 return Ok ( ExitCode :: FAILURE ) ;
171171 } else {
172172 app_state. render_final_message ( & mut stdout) ?;
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ pub fn run(app_state: &mut AppState) -> Result<ExitCode> {
2929 . current_exercise ( )
3030 . terminal_file_link ( & mut stdout) ?;
3131 stdout. write_all ( b" with errors\n " ) ?;
32+
3233 return Ok ( ExitCode :: FAILURE ) ;
3334 }
3435
Original file line number Diff line number Diff line change @@ -281,8 +281,6 @@ impl<'a> WatchState<'a> {
281281 }
282282
283283 pub fn check_all_exercises ( & mut self , stdout : & mut StdoutLock ) -> Result < ExercisesProgress > {
284- stdout. write_all ( b"\n " ) ?;
285-
286284 if let Some ( first_pending_exercise_ind) = self . app_state . check_all_exercises ( stdout) ? {
287285 // Only change exercise if the current one is done.
288286 if self . app_state . current_exercise ( ) . done {
You can’t perform that action at this time.
0 commit comments