From b24ecd86741c0baeeccae108c9b32043e9361384 Mon Sep 17 00:00:00 2001 From: MaurizioK Date: Wed, 29 May 2024 18:13:13 +0200 Subject: [PATCH] Throw exception if network is not working --- Runtime/SimpleGraphQL/HttpUtils.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Runtime/SimpleGraphQL/HttpUtils.cs b/Runtime/SimpleGraphQL/HttpUtils.cs index 55763a5..3b77dcb 100644 --- a/Runtime/SimpleGraphQL/HttpUtils.cs +++ b/Runtime/SimpleGraphQL/HttpUtils.cs @@ -131,6 +131,7 @@ public static async Task PostRequest( if (webRequest.result == UnityWebRequest.Result.ConnectionError) { Debug.LogError("Error While Sending: " + webRequest.error); + throw new UnityWebRequestException(webRequest); } var executionTime = DateTime.Now - startTime;