From a6db95497385e8304fa7a5aee3ae1b736a6913ad Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 20 Feb 2016 12:08:17 -0800 Subject: [PATCH] Bubble up the error correctly. --- .../src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt index 4729ce36..d0107595 100644 --- a/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt +++ b/modules/kobalt-plugin-api/src/main/kotlin/com/beust/kobalt/internal/DynamicGraph.kt @@ -2,7 +2,6 @@ package com.beust.kobalt.internal import com.beust.kobalt.KobaltException import com.beust.kobalt.TaskResult -import com.beust.kobalt.api.Kobalt import com.beust.kobalt.misc.* import com.google.common.collect.HashMultimap import java.lang.reflect.InvocationTargetException @@ -97,6 +96,7 @@ public class DynamicGraphExecutor(val graph: DynamicGraph, "a cycle in the dependencies.\n Nodes left: " + graph.dump(graph.nodesReady)) } else { error("Error during the build") + lastResult = TaskResult(false) } } return if (lastResult.success) 0 else 1