From 5cf49b444cb3fbd3664206b415169cd19327f6fd Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Fri, 14 Jun 2024 22:16:33 +0100 Subject: [PATCH] Fix invalid channel access errors --- Bloxstrap/Bootstrapper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 8755d28d..04536e23 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -247,10 +247,10 @@ private async Task CheckLatestVersion() } catch (HttpResponseException ex) { - if (ex.ResponseMessage.StatusCode != HttpStatusCode.NotFound) + if (ex.ResponseMessage.StatusCode is not HttpStatusCode.Unauthorized and not HttpStatusCode.Forbidden and not HttpStatusCode.NotFound) throw; - App.Logger.WriteLine(LOG_IDENT, $"Reverting enrolled channel to {RobloxDeployment.DefaultChannel} because a {binaryType} build does not exist for {App.Settings.Prop.Channel}"); + App.Logger.WriteLine(LOG_IDENT, $"Reverting enrolled channel to {RobloxDeployment.DefaultChannel} because HTTP {(int)ex.ResponseMessage.StatusCode}"); App.Settings.Prop.Channel = RobloxDeployment.DefaultChannel; clientVersion = await RobloxDeployment.GetInfo(App.Settings.Prop.Channel, binaryType: binaryType); }