Fixes #958: Use session.fatal() instead of assert!
This commit is contained in:
parent
21aa9b29bc
commit
78cdfc6c92
@ -225,11 +225,10 @@ enum BuilderKind<'a> {
|
||||
.arg(self.config.dst)
|
||||
.status()
|
||||
.expect("Couldn't run ranlib");
|
||||
assert!(
|
||||
status.success(),
|
||||
"Ranlib exited with code {:?}",
|
||||
status.code()
|
||||
);
|
||||
|
||||
if !status.success() {
|
||||
self.config.sess.fatal(&format!("Ranlib exited with code {:?}", status.code()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user