summaryrefslogtreecommitdiff
path: root/src/run.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/run.rs b/src/run.rs
index ea790e9..ebe4f96 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -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");
}