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

Merge pull request #234 from DevCharly/exit-on-exceptions

exit Kobal process on exceptions (fixes #229)
This commit is contained in:
Cedric Beust 2016-06-06 08:39:23 -07:00
commit a068ecd048

View file

@ -115,7 +115,7 @@ private class Main @Inject constructor(
val seconds = benchmarkSeconds {
try {
result = runWithArgs(jc, args, argv, pluginClassLoader)
} catch(ex: KobaltException) {
} catch(ex: Throwable) {
error("", ex.cause ?: ex)
result = 1
}