From c3b640ca64fa8005221e49f3453c9f4c20dbff06 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Fri, 14 Apr 2023 18:31:17 +0300 Subject: feat: report error from subplot code generation, if any Sponsored-by: author --- build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 9a45016..3eb9e1b 100644 --- a/build.rs +++ b/build.rs @@ -4,6 +4,9 @@ fn main() { lalrpop::process_root().unwrap(); println!("built parser with larlpop successfully"); println!("generating code with Subplot"); - subplot_build::codegen("riki.subplot").expect("failed to generate code with Subplot"); + if let Err(e) = subplot_build::codegen("riki.subplot") { + eprintln!("failed to generate code from subplot: {e}"); + std::process::exit(1); + } println!("generated code with Subplot successfully"); } -- cgit v1.2.1