File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -659,9 +659,10 @@ public static async Task<ExecutionResult> ExecuteWithErrorCheck(
659
659
this IDocumentExecuter executer ,
660
660
ExecutionOptions options )
661
661
{
662
+ options .ThrowOnUnhandledException = true ;
663
+
662
664
var executionResult = await executer .ExecuteAsync (options );
663
665
664
- options .ThrowOnUnhandledException = true ;
665
666
var errors = executionResult .Errors ;
666
667
if (errors is { Count : > 0 })
667
668
{
@@ -676,7 +677,7 @@ public static async Task<ExecutionResult> ExecuteWithErrorCheck(
676
677
return executionResult ;
677
678
}
678
679
```
679
- <sup ><a href =' /src/GraphQL.EntityFramework/GraphQlExtensions.cs#L5-L28 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ExecuteWithErrorCheck ' title =' Start of snippet ' >anchor</a ></sup >
680
+ <sup ><a href =' /src/GraphQL.EntityFramework/GraphQlExtensions.cs#L5-L29 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ExecuteWithErrorCheck ' title =' Start of snippet ' >anchor</a ></sup >
680
681
<!-- endSnippet -->
681
682
682
683
You can’t perform that action at this time.
0 commit comments