1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -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 { val seconds = benchmarkSeconds {
try { try {
result = runWithArgs(jc, args, argv, pluginClassLoader) result = runWithArgs(jc, args, argv, pluginClassLoader)
} catch(ex: KobaltException) { } catch(ex: Throwable) {
error("", ex.cause ?: ex) error("", ex.cause ?: ex)
result = 1 result = 1
} }