public static void CheckForUpdates() { try { bool updateAvailable = Updates.CheckForUpdates(); if (updateAvailable) { Console.WriteLine("An update is available for Kryptor. Visit <https://github.com/samuel-lucas6/Kryptor/releases> to update."); return; } Console.WriteLine("Kryptor is up-to-date."); } catch (Exception ex) when(ExceptionFilters.CheckForUpdates(ex)) { DisplayMessage.Exception(ex.GetType().Name, "Unable to check for updates."); } }