mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
Minor fixes.
This commit is contained in:
parent
8b71194d4c
commit
fc1779f8fa
2 changed files with 3 additions and 3 deletions
|
@ -166,7 +166,7 @@ public class Plugins @Inject constructor (val taskManagerProvider : Provider<Tas
|
||||||
if (method.returnType != TaskResult::class.java) {
|
if (method.returnType != TaskResult::class.java) {
|
||||||
throw IllegalArgumentException("${t}should return a TaskResult")
|
throw IllegalArgumentException("${t}should return a TaskResult")
|
||||||
}
|
}
|
||||||
if (method.parameterCount != 1) {
|
if (method.parameterTypes.size() != 1) {
|
||||||
throw IllegalArgumentException("${t}should take exactly one parameter of type a Project")
|
throw IllegalArgumentException("${t}should take exactly one parameter of type a Project")
|
||||||
}
|
}
|
||||||
with(method.parameterTypes) {
|
with(method.parameterTypes) {
|
||||||
|
|
|
@ -124,8 +124,8 @@ public class JCenterApi @Inject constructor (@Nullable @Assisted("username") val
|
||||||
} else {
|
} else {
|
||||||
result = TaskResult(false, failures.values().join(" "))
|
result = TaskResult(false, failures.values().join(" "))
|
||||||
error("Failed to upload ${failures.size()} files:")
|
error("Failed to upload ${failures.size()} files:")
|
||||||
failures.forEach { k, v ->
|
failures.forEach{ entry ->
|
||||||
error(" - ${k} : ${v}")
|
error(" - ${entry.key} : ${entry.value}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue