Don't print entire exception to popup

This commit is contained in:
Matt Nadareski
2021-09-28 11:46:37 -07:00
parent 14046e9217
commit 2077d53964
2 changed files with 3 additions and 1 deletions

View File

@@ -2,7 +2,6 @@
using System.Net;
using System.Reflection;
using Newtonsoft.Json.Linq;
using RedumpLib.Web;
namespace MPF.Utilities
{

View File

@@ -218,6 +218,9 @@ namespace MPF.GUI.ViewModels
Clipboard.SetText(url);
App.Logger.SecretLogLn(message);
if (url == null)
message = "An exception occurred while checking for versions, please try again later. See the log window for more details.";
CustomMessageBox.Show(App.Instance, message, "Version Update Check", MessageBoxButton.OK, different ? MessageBoxImage.Exclamation : MessageBoxImage.Information);
}