diff --git a/filed/build.rs b/filed/build.rs index dddb33f..f067b4f 100644 --- a/filed/build.rs +++ b/filed/build.rs @@ -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() }