more helpful error message if we fail to run plantuml
This commit is contained in:
parent
24a6f61e13
commit
a9575b04b6
1 changed files with 1 additions and 7 deletions
|
|
@ -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(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue