diff options
| author | mo8it <mo8it@proton.me> | 2024-04-12 19:24:26 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-12 19:24:26 +0200 |
| commit | 06d1089714d77e8619fd0b5c34361eec5312363e (patch) | |
| tree | 3a6c7f1b595059f9a22de2bc41f6490545df4df2 /src | |
| parent | 6e827da570278b6ff282f3b5c23e2ab95624117e (diff) | |
Set pending on fail in run mode
Diffstat (limited to 'src')
| -rw-r--r-- | src/run.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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"); } |
