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

exit Kobal process on exceptions (fixes #229)

This commit is contained in:
DevCharly 2016-06-06 16:43:18 +02:00
parent 9e563e3d8f
commit ec933143ad

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
} }