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:
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)
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue