From d6b15dfc8cf703a33d6e528da912265e74c9f2d1 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 7 Nov 2015 07:19:20 -0800 Subject: [PATCH] printStackTrace. --- src/main/kotlin/com/beust/kobalt/Main.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/kotlin/com/beust/kobalt/Main.kt b/src/main/kotlin/com/beust/kobalt/Main.kt index 8733e65b..2d559cf7 100644 --- a/src/main/kotlin/com/beust/kobalt/Main.kt +++ b/src/main/kotlin/com/beust/kobalt/Main.kt @@ -140,6 +140,7 @@ private class Main @Inject constructor( } catch(ex: KobaltException) { throw ex } catch(ex: Throwable) { + ex.printStackTrace() // This can happen if the ABI for the build script file changed. Try to wipe .kobalt. log(2, "Couldn't parse preBuildScript.jar: ${ex.message}") if (! File(".kobalt").deleteRecursively()) {