display errors
This commit is contained in:
parent
22f9c9ac78
commit
a2020a57be
|
@ -22,6 +22,11 @@ fn system(cmd: &str, args: &[&str]) -> String {
|
|||
.args(args)
|
||||
.output()
|
||||
.unwrap();
|
||||
|
||||
if out.stderr.len() != 0 {
|
||||
panic!("Got this while running {cmd} with \"{}\": {}", args.join(" "), String::from_utf8(out.stderr).unwrap())
|
||||
}
|
||||
|
||||
String::from_utf8(out.stdout).unwrap()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue