perf: 优化订阅校验错误提示

This commit is contained in:
lisonge 2023-12-27 12:11:31 +08:00
parent a8ad0c9838
commit b0131ecd5b

View File

@ -570,11 +570,11 @@ data class RawSubscription(
}
subscription.apps.forEach { a ->
a.groups.findDuplicatedItem { v -> v.key }?.let { v ->
error("duplicated app group: key=${v.key}")
error("duplicated app group: key=${v.key}, appId=${a.id}")
}
a.groups.forEach { g ->
g.rules.findDuplicatedItem { v -> v.key }?.let { v ->
error("duplicated app rule: key=${v.key}, groupKey=${g.key}, appId=${a.id} ")
error("duplicated app rule: key=${v.key}, groupKey=${g.key}, appId=${a.id}")
}
}
}