We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dd6806b + 4435297 commit 1b5e989Copy full SHA for 1b5e989
1 file changed
cargo-workspaces/src/exec.rs
@@ -46,6 +46,7 @@ impl Exec {
46
.map(|x| Glob::new(&x))
47
.map_or::<StdResult<_, GlobsetError>, _>(Ok(None), |x| Ok(x.ok()))?;
48
49
+ let mut errored = false;
50
for p in &visited {
51
let (pkg, _) = names.get(p).expect(INTERNAL_ERR);
52
@@ -65,12 +66,23 @@ impl Exec {
65
66
.current_dir(dir)
67
.status()?;
68
- if !self.no_bail && !status.success() {
69
- return Err(Error::Bail);
+ if !status.success() {
70
+ match self.no_bail {
71
+ true => errored = true,
72
+ false => return Err(Error::Bail),
73
+ }
74
}
75
76
- info!("success", "ok");
- Ok(())
77
+ match errored {
78
+ true => {
79
+ info!("failed", "error(s) occurred");
80
+ Err(Error::Bail)
81
82
+ false => {
83
+ info!("success", "ok");
84
+ Ok(())
85
86
87
88
0 commit comments