feat(cli): do not run executable if build failed

This commit is contained in:
rvcas 2021-07-03 14:23:21 -04:00
parent a0deaa84e6
commit 3fa5b4363e
2 changed files with 10 additions and 4 deletions

View file

@ -231,7 +231,10 @@ pub fn build(target: &Triple, matches: &ArgMatches, config: BuildConfig) -> io::
}
}
roc_run(cmd.current_dir(original_cwd))
match outcome {
BuildOutcome::Errors => Ok(2),
_ => roc_run(cmd.current_dir(original_cwd)),
}
}
}
}