mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
more debug log when error
This commit is contained in:
parent
131f56a468
commit
b6b54a805e
@ -61,7 +61,7 @@ class ProtoMap(
|
|||||||
var curMap = value
|
var curMap = value
|
||||||
tags.forEachIndexed { index, tag ->
|
tags.forEachIndexed { index, tag ->
|
||||||
if (index == tags.size - 1) {
|
if (index == tags.size - 1) {
|
||||||
return curMap[tag] ?: error("Tag $tag not found")
|
return curMap[tag] ?: error("pb[${tags.joinToString(", ")}][$index] Tag $tag not found")
|
||||||
}
|
}
|
||||||
curMap[tag]?.let { v ->
|
curMap[tag]?.let { v ->
|
||||||
if (v is ProtoMap) {
|
if (v is ProtoMap) {
|
||||||
@ -69,7 +69,7 @@ class ProtoMap(
|
|||||||
} else {
|
} else {
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
} ?: error("Tag $tag not found")
|
} ?: error("pb[${tags.joinToString(", ")}][$index] Tag $tag not found")
|
||||||
}
|
}
|
||||||
error("Instance is not ProtoMap for get(${tags.first()})")
|
error("Instance is not ProtoMap for get(${tags.first()})")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user