Following the documentation I currently have `ins...
# ktor
m
Following the documentation I currently have
install(StatusPages) {
exception<Throwable> { cause ->
call.respond(HttpStatusCode.InternalServerError)
}
}
But if I use 2.0.0-beta-1 instead of 2.0.0-eap-256 then it complains like this. Anyone else seeing that? I did a search and didn’t see anyone post about it yet. https://ktor.io/docs/status-pages.html#exceptions
Ok seems to work by changing to this
Copy code
install(StatusPages) {
        exception<Throwable> { call, cause ->
            call.respond(HttpStatusCode.InternalServerError)
            throw cause
        }
    }