summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-04-14 18:31:17 +0300
committerLars Wirzenius <liw@liw.fi>2023-04-14 18:31:17 +0300
commitc3b640ca64fa8005221e49f3453c9f4c20dbff06 (patch)
treec229bc87aa75e7eae80a6f54cc015eb7d1781a3a
parent323382c9a74b0ccec559c07e7c51c52f0a71bada (diff)
downloadriki-c3b640ca64fa8005221e49f3453c9f4c20dbff06.tar.gz
feat: report error from subplot code generation, if any
Sponsored-by: author
-rw-r--r--build.rs5
1 files changed, 4 insertions, 1 deletions
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");
}