mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-23 02:35:39 +01:00
Assert return code is valid when running yarn
This commit is contained in:
parent
6d443805fc
commit
2ee02bbf46
8
build.rs
8
build.rs
@ -101,7 +101,7 @@ fn main() {
|
|||||||
.spawn()
|
.spawn()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.wait().expect("Unable to install Node.JS dependencies using Yarn");
|
.wait().expect("Unable to install Node.JS dependencies using Yarn");
|
||||||
Command::new(&yarn_binary)
|
let return_code = Command::new(&yarn_binary)
|
||||||
.args(&[
|
.args(&[
|
||||||
"--cwd",
|
"--cwd",
|
||||||
ui_dir.to_str().expect("Unable to covert path"),
|
ui_dir.to_str().expect("Unable to covert path"),
|
||||||
@ -113,7 +113,7 @@ fn main() {
|
|||||||
.to_str()
|
.to_str()
|
||||||
.expect("Unable to convert path"),
|
.expect("Unable to convert path"),
|
||||||
])
|
])
|
||||||
.spawn()
|
.status()
|
||||||
.unwrap()
|
.expect("Unable to build frontend assets using Webpack");
|
||||||
.wait().expect("Unable to build frontend assets using Webpack");
|
assert!(return_code.success());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user