From a9575b04b675d90b840411178b855421c01867fc Mon Sep 17 00:00:00 2001 From: Sebastian Kuzminsky Date: Thu, 13 Mar 2025 10:08:53 -0600 Subject: [PATCH] more helpful error message if we fail to run plantuml --- tools/src/repos.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/src/repos.rs b/tools/src/repos.rs index 753712c..e85c0f7 100644 --- a/tools/src/repos.rs +++ b/tools/src/repos.rs @@ -106,13 +106,7 @@ impl Repos { writeln!(puml_file, "object {}", target)?; self.compile_inner(&mut puml_file, target, recipe, 4)?; writeln!(puml_file, "@enduml")?; - let output = Command::new("plantuml") - .arg("-v") - .arg(&puml_filename) - .output()?; - if !output.status.success() { - println!("{:#?}", output); - } + Command::new("plantuml").arg("-v").arg(&puml_filename).output().expect("failed to run `plantuml`"); Ok(()) } }