mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 11:42:22 +08:00
perf: 优化订阅校验错误提示
This commit is contained in:
parent
a8ad0c9838
commit
b0131ecd5b
|
@ -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}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user