We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc6929 commit b8e6c55Copy full SHA for b8e6c55
src/build/mod.rs
@@ -55,9 +55,7 @@ impl Builder {
55
let mut cmd = self.init_cmd();
56
let status = cmd.status().expect("Running build failed");
57
let result = status.code();
58
- if let Some(0) = result {
59
- self.clean_analysis();
60
- }
+ self.clean_analysis();
61
result
62
}
63
src/server.rs
@@ -77,7 +77,9 @@ impl Server {
77
let code = builder.build().unwrap();
78
status.finish_build();
79
80
- if code != 0 {
+ // Test specifically for `1` rather than `!= 0` since a compilation
81
+ // failure gives `101`, and we want to continue then.
82
+ if code == 1 {
83
process::exit(1);
84
85
status.start_analysis();
0 commit comments