Skip to content

Commit

Permalink
Add friendly info for HTTP request timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaboxer committed Aug 23, 2023
1 parent e318c98 commit 7a963c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Bloxstrap/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7a963c5

Please sign in to comment.