display errors
This commit is contained in:
parent
8d5d739568
commit
32375127a9
|
@ -22,6 +22,11 @@ fn system(cmd: &str, args: &[&str]) -> String {
|
||||||
.args(args)
|
.args(args)
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.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()
|
String::from_utf8(out.stdout).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue