From feec41e4cbda06e81a24d670b08aab97ecc2bdad Mon Sep 17 00:00:00 2001 From: hyzx86 Date: Tue, 19 Mar 2024 17:33:50 +0800 Subject: [PATCH] continue throw graphql error --- .../OrchardCore.Apis.GraphQL/GraphQLMiddleware.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/GraphQLMiddleware.cs b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/GraphQLMiddleware.cs index 44281d94b6d..c74baac4f09 100644 --- a/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/GraphQLMiddleware.cs +++ b/src/OrchardCore.Modules/OrchardCore.Apis.GraphQL/GraphQLMiddleware.cs @@ -18,6 +18,7 @@ using Microsoft.AspNetCore.Mvc.Formatters; using Microsoft.CodeAnalysis; using Microsoft.Extensions.DependencyInjection; +using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using OrchardCore.Apis.GraphQL.Queries; using OrchardCore.Apis.GraphQL.ValidationRules; @@ -122,7 +123,7 @@ private async Task ExecuteAsync(HttpContext context) catch (Exception e) { await _serializer.WriteErrorAsync(context, "An error occurred while processing the GraphQL query", e); - return; + throw; } var queryToExecute = request.Query;