diff --git a/build.rs b/build.rs index e4fc919..baf03e8 100644 --- a/build.rs +++ b/build.rs @@ -5,7 +5,7 @@ use std::path::Path; fn main() { let linux_headers_path = { - let path = env::var("LINUX_HEADERS_PATH").unwrap(); + let path = env::var("LINUX_HEADERS_PATH").expect("LINUX_HEADERS_PATH not present"); let path = Path::new(&path).canonicalize().unwrap(); path.to_str().unwrap().to_string() };