[REPBUILD] fail to run when kernel fails building

memory-manager
ondra05 2023-01-07 22:32:40 +01:00
parent d146172df3
commit 537291882e
No known key found for this signature in database
GPG Key ID: 110E9A6F7CBA6712
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ fn build(release: bool) -> Result<(), Error> {
com.arg("-r");
}
com.status().into_report().change_context(Error::Build)?;
match com.status() {
Ok(s) if s.code() != Some(0) => bail!(Error::Build),
Err(e) => bail!(report!(e).change_context(Error::Build)),
_ => (),
}
(|| -> std::io::Result<_> {
io::copy(