Skip to content

Commit 5ff3170

Browse files
committed
improve Error page
1 parent 526d3ab commit 5ff3170

File tree

1 file changed

+5
-2
lines changed
  • api/server/src/main/kotlin/routes/stats

1 file changed

+5
-2
lines changed

api/server/src/main/kotlin/routes/stats/error.kt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import io.ktor.http.*
1414
import io.ktor.server.mustache.*
1515
import io.ktor.server.response.*
1616
import io.ktor.server.routing.*
17+
import org.jetbrains.exposed.v1.core.Op
1718
import org.jetbrains.exposed.v1.core.SortOrder
1819
import org.jetbrains.exposed.v1.core.and
1920
import org.jetbrains.exposed.v1.core.not
@@ -49,12 +50,14 @@ internal fun Route.errorRoutes() {
4950
(Tables.Errors.message like "connection closed") or //
5051
(Tables.Errors.message like "Failed to connect to %") or //
5152
(Tables.Errors.message like "Unable to resolve host %") or //
52-
(Tables.Errors.message like "Software caused connection abort") //
53+
(Tables.Errors.message like "Software caused connection abort") or //
54+
(Tables.Errors.message like "Binding socket to network % failed: %") or //
55+
(Op.TRUE)
5356
)
5457
}
5558
}
5659
}.let { query ->
57-
if (unlimited) query else query.limit(100)
60+
if (unlimited) query else query.limit(1000)
5861
}
5962
}.map {
6063
val dateTime = it[Tables.Errors.timestamp].toLocalDateTime(UTC)

0 commit comments

Comments
 (0)