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:
parent
138ba15f3a
commit
224a5d7925
2 changed files with 6 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue