more helpful error message if we fail to run plantuml

This commit is contained in:
Sebastian Kuzminsky 2025-03-13 10:08:53 -06:00
parent 24a6f61e13
commit a9575b04b6

View file

@ -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(())
}
}