Radish alpha
r
Radicle CI broker
Radicle
Git (anonymous pull)
Log in to clone via SSH
refactor(build.rs): handle errors without panic
Lars Wirzenius committed 1 year ago
commit 15ae4148c95d043fec63579c4365050686b8bd99
parent 1e736c46ea6bca039216ead96bad2439769f2e23
1 file changed +4 -1
modified build.rs
@@ -23,5 +23,8 @@ fn main() {
    println!("cargo:rustc-env=GIT_HEAD={hash}");
    println!("cargo:rustc-rerun-if-changed=.git/HEAD");

-
    subplot_build::codegen("ci-broker.subplot").expect("failed to generate code with Subplot");
+
    if let Err(e) = subplot_build::codegen("ci-broker.subplot") {
+
        eprintln!("failed to generate code with Subplot: {e}");
+
        std::process::exit(1);
+
    }
}