1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-29 17:38:12 -07:00

Handle build compilation failures better.

This commit is contained in:
Cedric Beust 2015-11-08 16:43:29 -08:00
parent 39ca901d4b
commit c64c6fec86
3 changed files with 13 additions and 3 deletions

View file

@ -11,6 +11,7 @@ import com.beust.kobalt.kotlin.BuildFile
import com.beust.kobalt.kotlin.BuildFileCompiler
import com.beust.kobalt.maven.DepFactory
import com.beust.kobalt.maven.Http
import com.beust.kobalt.maven.KobaltException
import com.beust.kobalt.maven.LocalRepo
import com.beust.kobalt.misc.*
import com.beust.kobalt.wrapper.Wrapper
@ -94,6 +95,9 @@ private class Main @Inject constructor(
// runTest()
try {
result = runWithArgs(jc, args)
} catch(ex: KobaltException) {
error(ex.message ?: "", ex)
result = 1
} finally {
executors.shutdown()
}