From 7a963c53f7b84d0051b551e51a5c63cf6b9820da Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Wed, 23 Aug 2023 19:30:04 +0100 Subject: [PATCH] Add friendly info for HTTP request timeouts --- Bloxstrap/Bootstrapper.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 12670260..591909cb 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -132,8 +132,9 @@ public async Task Run() if (ex.GetType() == typeof(HttpResponseException)) message = "Roblox may be down right now. See status.roblox.com for more information. Please try again later."; - - if (ex.GetType() == typeof(AggregateException)) + else if (ex.GetType() == typeof(TaskCanceledException)) + message = "Bloxstrap timed out when trying to connect to three different Roblox deployment mirrors, indicating a poor internet connection. Please try again later."; + else if (ex.GetType() == typeof(AggregateException)) ex = ex.InnerException!; Controls.ShowConnectivityDialog("Roblox", message, ex);