From 0e35a248a10e69fbfe54127010876e7a459c3d9b Mon Sep 17 00:00:00 2001 From: Andrei Zisu Date: Sun, 12 Nov 2023 13:21:27 +0100 Subject: [PATCH] Add more descriptive build error message --- app/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/build.rs b/app/build.rs index ebbb061..c9c47e4 100644 --- a/app/build.rs +++ b/app/build.rs @@ -5,7 +5,10 @@ use std::env; use std::path::PathBuf; fn main() { - let clang_lib_path = env::var("CLANG_LIB_PATH").unwrap(); + let clang_lib_path = env::var("CLANG_LIB_PATH").expect( + "CLANG_LIB_PATH is not set.\ + Make sure you are building from the flatpak environment", + ); let out_path = env::var("OUT_DIR").unwrap(); let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();