mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 12:09:37 +00:00
Don't use dbg for printing stdout/stderr
They are byte buffers, not strings. A pretty print has been added accordingly.
This commit is contained in:
parent
24dba66bad
commit
6df1b46313
1 changed files with 13 additions and 2 deletions
|
@ -125,8 +125,19 @@ pub fn build(name: String) {
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
if !res.status.success() {
|
if !res.status.success() {
|
||||||
dbg!(res.stdout);
|
println!("failed to build {name}\n");
|
||||||
dbg!(res.stderr);
|
println!("-- stdout --");
|
||||||
|
println!(
|
||||||
|
"{}\r\n",
|
||||||
|
String::from_utf8(res.stdout)
|
||||||
|
.unwrap_or_else(|_| "stdout had non-utf8 characters".to_string())
|
||||||
|
);
|
||||||
|
println!("-- stderr --");
|
||||||
|
println!(
|
||||||
|
"{}\r\n",
|
||||||
|
String::from_utf8(res.stderr)
|
||||||
|
.unwrap_or_else(|_| "stderr had non-utf8 characters".to_string())
|
||||||
|
);
|
||||||
panic!("failed to build {name}");
|
panic!("failed to build {name}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue