<@U092308M7> the first problem is on api: ``` fun ...
# ktor
g
@orangy the first problem is on api:
Copy code
fun <T : Tag> T.visit(block: T.() -> Unit) {
    consumer.onTagStart(this)
    try {
        this.block()
    } catch (err: Exception) {
        consumer.onTagError(this, err)
    } finally {
        consumer.onTagEnd(this)
    }
}
should be
Copy code
fun <T : Tag> T.visit(block: T.() -> Unit) {
    consumer.onTagStart(this)
    try {
        this.block()
    } catch (err: Throwable) {
        consumer.onTagError(this, err)
    } finally {
        consumer.onTagEnd(this)
    }
}
No?