From e6a3d224a4d0d8a6ea25c2ceefd861b8483b25c6 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 23 Jan 2016 08:45:20 -0800 Subject: [PATCH] Better error message. --- .../com/beust/kobalt/plugin/application/ApplicationPlugin.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/plugin/application/ApplicationPlugin.kt b/src/main/kotlin/com/beust/kobalt/plugin/application/ApplicationPlugin.kt index 4a157af2..71643d8b 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/application/ApplicationPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/application/ApplicationPlugin.kt @@ -57,7 +57,8 @@ class ApplicationPlugin @Inject constructor(val executors: KobaltExecutors, if (runContributor != null && runContributor.affinity(project, context) > 0) { return runContributor.run(project, context, dependencyManager.dependencies(project, context)) } else { - warn("Couldn't find a runner for project ${project.name}") + warn("Couldn't find a runner for project ${project.name}. Please make sure your build file contains " + + "an application{} directive with a mainClass=... in it") return TaskResult() } }