diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-04-14 18:31:17 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-04-14 18:31:17 +0300 |
commit | c3b640ca64fa8005221e49f3453c9f4c20dbff06 (patch) | |
tree | c229bc87aa75e7eae80a6f54cc015eb7d1781a3a /build.rs | |
parent | 323382c9a74b0ccec559c07e7c51c52f0a71bada (diff) | |
download | riki-c3b640ca64fa8005221e49f3453c9f4c20dbff06.tar.gz |
feat: report error from subplot code generation, if any
Sponsored-by: author
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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"); } |