forked from koniifer/ableos
[REPBUILD] fail to run when kernel fails building
This commit is contained in:
parent
7ac54e5ec8
commit
c241d839f2
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue