From f0183370be7109b6227c0879a9d14d13a145d3fd Mon Sep 17 00:00:00 2001 From: Ethan O'Brien Date: Thu, 19 Feb 2026 09:59:16 -0600 Subject: [PATCH] Add error message when webui submodules are not pulled --- build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.rs b/build.rs index d8db299..93d4fb2 100644 --- a/build.rs +++ b/build.rs @@ -9,4 +9,8 @@ fn main() { .compile("libc_code.a"); println!("cargo:rerun-if-changed=src/log.c"); } + + if !std::fs::exists("webui/index.html").unwrap_or(false) { + panic!("Could not compile crate! Missing webui! Did you pull submodules?"); + } }