We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c694954 commit 1bc93f9Copy full SHA for 1bc93f9
app/main/api/util/ErrorHandling.kt
@@ -71,6 +71,11 @@ fun StatusPagesConfig.feilhåndtering(
71
}
72
73
else -> {
74
+ if(cause is BadRequestException){
75
+ logger.warn("Bad request", cause)
76
+ call.respond(HttpStatusCode.BadRequest, FeilRespons("Feil i mottatte data: ${rootCause.message}"))
77
+ return@exception
78
+ }
79
logger.error("Uhåndtert feil ved kall mot ${call.request.path()}", cause)
80
call.respond(
81
HttpStatusCode.InternalServerError,
0 commit comments