mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 16:07:12 -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) {
|
||||
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")
|
||||
}
|
||||
with(method.parameterTypes) {
|
||||
|
|
|
@ -124,8 +124,8 @@ public class JCenterApi @Inject constructor (@Nullable @Assisted("username") val
|
|||
} else {
|
||||
result = TaskResult(false, failures.values().join(" "))
|
||||
error("Failed to upload ${failures.size()} files:")
|
||||
failures.forEach { k, v ->
|
||||
error(" - ${k} : ${v}")
|
||||
failures.forEach{ entry ->
|
||||
error(" - ${entry.key} : ${entry.value}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue