mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-29 17:38:12 -07:00
Handle errors better in KobaltServer.
This commit is contained in:
parent
00722cc637
commit
d26ae330a7
3 changed files with 25 additions and 15 deletions
|
@ -120,13 +120,14 @@ private class Main @Inject constructor(
|
|||
try {
|
||||
allProjects = buildFileCompilerFactory.create(listOf(buildFile)).compileBuildFiles(args)
|
||||
} catch(ex: Throwable) {
|
||||
error("Couldn't build", ex)
|
||||
log(2, "Couldn't parse preBuildScript.jar: ${ex.message}")
|
||||
if (! File(".kobalt").deleteRecursively()) {
|
||||
warn("Couldn't delete .kobalt, please delete it manually")
|
||||
} else {
|
||||
log(1, "Deleted .kobalt")
|
||||
allProjects = buildFileCompilerFactory.create(listOf(buildFile)).compileBuildFiles(args)
|
||||
}
|
||||
// if (! File(".kobalt").deleteRecursively()) {
|
||||
// warn("Couldn't delete .kobalt, please delete it manually")
|
||||
// } else {
|
||||
// log(1, "Deleted .kobalt")
|
||||
// allProjects = buildFileCompilerFactory.create(listOf(buildFile)).compileBuildFiles(args)
|
||||
// }
|
||||
}
|
||||
|
||||
if (args.tasks) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue