mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Don't print entire exception to popup
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using RedumpLib.Web;
|
||||
|
||||
namespace MPF.Utilities
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user