From a2020a57be22c0154f45a8fd1b812c7886527a87 Mon Sep 17 00:00:00 2001 From: blek Date: Sun, 29 Oct 2023 19:25:33 +1000 Subject: [PATCH] display errors --- filed/build.rs | 5 +++++ 1 file changed, 5 insertions(+) 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() }