From 1e9d4e99baf37f32bd89f5c99d85b02b921b8922 Mon Sep 17 00:00:00 2001 From: Jamie Sinn Date: Fri, 13 Dec 2024 13:50:21 -0500 Subject: [PATCH] Only throw errors if they exist - not if the initialization is delayed/errored intentionally --- proxies/dotnet/Controllers/Client.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxies/dotnet/Controllers/Client.cs b/proxies/dotnet/Controllers/Client.cs index 70d26eb2..cb20ee76 100644 --- a/proxies/dotnet/Controllers/Client.cs +++ b/proxies/dotnet/Controllers/Client.cs @@ -128,7 +128,7 @@ public async Task Post(ClientRequestBody ClientBody) .Build(); await task; - if (eventArgs != null && !eventArgs.Success) { + if (eventArgs != null && eventArgs.Errors.Count > 0) { throw eventArgs.Errors[0]; } } else {