Skip to content

Commit 3ed4b74

Browse files
committed
fix location of ThrowOnUnhandledException in ExecuteWithErrorCheck
1 parent ac9195b commit 3ed4b74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GraphQL.EntityFramework/GraphQlExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ public static async Task<ExecutionResult> ExecuteWithErrorCheck(
88
this IDocumentExecuter executer,
99
ExecutionOptions options)
1010
{
11+
options.ThrowOnUnhandledException = true;
12+
1113
var executionResult = await executer.ExecuteAsync(options);
1214

13-
options.ThrowOnUnhandledException = true;
1415
var errors = executionResult.Errors;
1516
if (errors is { Count: > 0 })
1617
{

0 commit comments

Comments
 (0)