Set pending on fail in run mode

This commit is contained in:
mo8it 2024-04-12 19:24:26 +02:00
parent 6e827da570
commit 06d1089714

View file

@ -15,6 +15,8 @@ pub fn run(app_state: &mut AppState) -> Result<()> {
stdout.flush()?;
if !output.status.success() {
app_state.set_pending(app_state.current_exercise_ind())?;
bail!("Ran {exercise} with errors");
}