fix(misc): make build script fail if cargo fails

This commit is contained in:
Federico Terzi 2021-08-13 22:22:17 +02:00
parent ba4f9400ea
commit c8887fdee0

View File

@ -72,5 +72,8 @@ fn main() {
}
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");
}
}