mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-21 21:42:23 -05:00
Set pending on fail in run mode
This commit is contained in:
parent
6e827da570
commit
06d1089714
1 changed files with 2 additions and 0 deletions
|
@ -15,6 +15,8 @@ pub fn run(app_state: &mut AppState) -> Result<()> {
|
||||||
stdout.flush()?;
|
stdout.flush()?;
|
||||||
|
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
|
app_state.set_pending(app_state.current_exercise_ind())?;
|
||||||
|
|
||||||
bail!("Ran {exercise} with errors");
|
bail!("Ran {exercise} with errors");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue