mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Bubble up the error correctly.
This commit is contained in:
parent
0ad490ef90
commit
a6db954973
1 changed files with 1 additions and 1 deletions
|
@ -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<T>(val graph: DynamicGraph<T>,
|
|||
"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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue