diff --git a/StabilityMatrix.Avalonia/Services/AccountsService.cs b/StabilityMatrix.Avalonia/Services/AccountsService.cs index e23b0b7d..66e74f10 100644 --- a/StabilityMatrix.Avalonia/Services/AccountsService.cs +++ b/StabilityMatrix.Avalonia/Services/AccountsService.cs @@ -161,6 +161,10 @@ public class AccountsService : IAccountsService { logger.LogWarning("Timed out while fetching Lykos Auth user info"); } + catch (InvalidOperationException e) + { + logger.LogWarning(e, "Failed to get authentication token"); + } catch (ApiException e) { if (e.StatusCode is HttpStatusCode.Unauthorized) { } @@ -169,6 +173,10 @@ public class AccountsService : IAccountsService logger.LogWarning(e, "Failed to get user info from Lykos"); } } + catch (Exception e) + { + logger.LogError(e, "Unknown error while refreshing Lykos account status"); + } } OnLykosAccountStatusUpdate(LykosAccountStatusUpdateEventArgs.Disconnected);