fix(misc): make build script fail if cargo fails
This commit is contained in:
parent
ba4f9400ea
commit
c8887fdee0
|
@ -72,5 +72,8 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut handle = cmd.spawn().expect("cargo build failed");
|
let mut handle = cmd.spawn().expect("cargo build failed");
|
||||||
handle.wait();
|
let result = handle.wait().expect("unable to read cargo exit status");
|
||||||
|
if !result.success() {
|
||||||
|
panic!("cargo build failed");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user