Skip to content

Commit b334e04

Browse files
committed
Rethrow GraphViz failures if any
1 parent 24bdc84 commit b334e04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

buildSrc/src/main/kotlin/io/micronaut/build/ProjectGraphBuilder.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,13 @@ abstract class ProjectGraphBuilder : DefaultTask() {
374374
}
375375

376376
private fun invokeGraphviz(outputDir: File, graphName: String, dotFile: File) {
377-
execOperations.exec {
377+
val result = execOperations.exec {
378378
executable = "dot"
379379
args = listOf("-Tpng", "-o", File(outputDir, "${graphName}.png").absolutePath, dotFile.absolutePath)
380380
}
381+
if (result.exitValue != 0) {
382+
result.rethrowFailure()
383+
}
381384
}
382385

383386
fun String.toProjectName(): String {

0 commit comments

Comments
 (0)