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

Send an actual error to the plug-in.

This commit is contained in:
Cedric Beust 2016-05-05 23:00:21 -08:00
parent b56178e8a0
commit 168d635989

View file

@ -40,12 +40,13 @@ class SparkServer(val initCallback: (String) -> List<Project>, val cleanUpCallba
dependencyData.dependenciesDataFor(buildFile, args)
} catch(ex: Exception) {
"Error: " + ex.message
DependencyData.GetDependenciesData(emptyList<DependencyData.ProjectData>(), ex.message)
} finally {
cleanUpCallback()
}
} else {
"error"
DependencyData.GetDependenciesData(emptyList<DependencyData.ProjectData>(),
"buildFile wasn't passed in the query parameter")
}
cleanUpCallback()
result