1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 08:38:13 -07:00

Better error reporting when launching separate kotlinc.

This commit is contained in:
Cedric Beust 2017-02-08 14:10:59 -08:00
parent 138ba15f3a
commit 224a5d7925
2 changed files with 6 additions and 2 deletions

View file

@ -111,7 +111,7 @@ class KotlinCompiler @Inject constructor(
args = newArgs
directory = File(".")
// The Kotlin compiler issues warnings on stderr :-(
useErrorStreamAsErrorIndicator = false
containsErrors = { errors: List<String> -> errors.any { it.contains("rror")} }
}).invoke()
return TaskResult(result == 0, "Error while compiling")
}