From 168d6359899c168e1eb821c5c9c31a1d6ca0b500 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 5 May 2016 23:00:21 -0800 Subject: [PATCH] Send an actual error to the plug-in. --- src/main/kotlin/com/beust/kobalt/app/remote/SparkServer.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/app/remote/SparkServer.kt b/src/main/kotlin/com/beust/kobalt/app/remote/SparkServer.kt index 4e871cfc..b37e6209 100644 --- a/src/main/kotlin/com/beust/kobalt/app/remote/SparkServer.kt +++ b/src/main/kotlin/com/beust/kobalt/app/remote/SparkServer.kt @@ -40,12 +40,13 @@ class SparkServer(val initCallback: (String) -> List, val cleanUpCallba dependencyData.dependenciesDataFor(buildFile, args) } catch(ex: Exception) { - "Error: " + ex.message + DependencyData.GetDependenciesData(emptyList(), ex.message) } finally { cleanUpCallback() } } else { - "error" + DependencyData.GetDependenciesData(emptyList(), + "buildFile wasn't passed in the query parameter") } cleanUpCallback() result