1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 16:28:12 -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) dependencyData.dependenciesDataFor(buildFile, args)
} catch(ex: Exception) { } catch(ex: Exception) {
"Error: " + ex.message DependencyData.GetDependenciesData(emptyList<DependencyData.ProjectData>(), ex.message)
} finally { } finally {
cleanUpCallback() cleanUpCallback()
} }
} else { } else {
"error" DependencyData.GetDependenciesData(emptyList<DependencyData.ProjectData>(),
"buildFile wasn't passed in the query parameter")
} }
cleanUpCallback() cleanUpCallback()
result result