From 2e1f223e4070692394ff42d9c7bb80ebf0cb237c Mon Sep 17 00:00:00 2001 From: dakriy Date: Mon, 29 Jan 2024 10:32:15 -0800 Subject: [PATCH] fix: Do not swallow root level exceptions Let root level bootstrap exceptions go to the ktor exception handler rather than being swallowed. --- .../main/kotlin/com/expediagroup/graphql/server/ktor/GraphQL.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/servers/graphql-kotlin-ktor-server/src/main/kotlin/com/expediagroup/graphql/server/ktor/GraphQL.kt b/servers/graphql-kotlin-ktor-server/src/main/kotlin/com/expediagroup/graphql/server/ktor/GraphQL.kt index b9f8f30435..ae4806abcb 100644 --- a/servers/graphql-kotlin-ktor-server/src/main/kotlin/com/expediagroup/graphql/server/ktor/GraphQL.kt +++ b/servers/graphql-kotlin-ktor-server/src/main/kotlin/com/expediagroup/graphql/server/ktor/GraphQL.kt @@ -195,6 +195,4 @@ internal suspend inline fun KtorGraphQLServer.executeRequest(call: ApplicationCa } ?: call.respond(HttpStatusCode.BadRequest) } catch (e: UnsupportedOperationException) { call.respond(HttpStatusCode.MethodNotAllowed) -} catch (e: Exception) { - call.respond(HttpStatusCode.BadRequest) }