Skip to content

Commit 67939b6

Browse files
committedApr 23, 2021
Provide depth information in assertion error.
1 parent e802b12 commit 67939b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/jsMain/kotlin/nl/adaptivity/xmlutil/JSDomWriter.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class JSDomWriter constructor(
319319
}
320320

321321
override fun close() {
322-
assert(depth == 0) { "Closing a dom writer but not all elements were closed" }
322+
assert(depth == 0) { "Closing a dom writer but not all elements were closed (depth:$depth)" }
323323
currentNode = null
324324
}
325325

0 commit comments

Comments
 (0)