Skip to content

Commit

Permalink
continue throw graphql error
Browse files Browse the repository at this point in the history
  • Loading branch information
hyzx86 committed Mar 19, 2024
1 parent 65a131b commit feec41e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit feec41e

Please sign in to comment.