mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Better error message.
This commit is contained in:
parent
fca974779d
commit
b354b42767
2 changed files with 4 additions and 0 deletions
|
@ -117,6 +117,9 @@ class Options @Inject constructor(
|
|||
//
|
||||
// Launch the build
|
||||
//
|
||||
if (! buildSources.exists()) {
|
||||
throw KobaltException("Could not find build file: " + buildSources)
|
||||
}
|
||||
val runTargetResult = taskManager.runTargets(args.targets, allProjects)
|
||||
if (result == 0) {
|
||||
result = if (runTargetResult.taskResult.success) 0 else 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue