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:
parent
b56178e8a0
commit
168d635989
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue