From fb0da19f24fad7c04bbd9bcef865f9e4165b36c4 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 14 Jan 2017 10:14:14 -0800 Subject: [PATCH] Better message. --- .../kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt b/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt index 75dab445..c9029f91 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/kotlin/KotlinCompiler.kt @@ -108,7 +108,7 @@ class KotlinCompiler @Inject constructor( message: String, location: CompilerMessageLocation) { if (severity.isError) { System.err.println(location.dump(message)) - throw KobaltException("Couldn't compile build file: $message") + throw KobaltException("Couldn't compile file: $message") } else if (severity == CompilerMessageSeverity.WARNING && KobaltLogger.LOG_LEVEL >= 2) { warn(location.dump(message)) } else if (severity == CompilerMessageSeverity.INFO && KobaltLogger.LOG_LEVEL >= 2) {