User-friendly error message if checking for updates fails (fixes #966)

This commit is contained in:
Matt Nadareski
2026-04-13 16:08:36 -04:00
parent 624065a2ae
commit 0e8b174f12
2 changed files with 3 additions and 2 deletions

View File

@@ -4,6 +4,7 @@
- Fix tests from last change
- Migrate to public domain CICM implementation
- Relicense from GPLv3 to MIT
- User-friendly error message if checking for updates fails
### 3.7.1 (2026-03-30)

View File

@@ -560,10 +560,10 @@ namespace MPF.Frontend.Tools
different = version != tag && tag is not null;
message = $"Local version: {version}{Environment.NewLine}Remote version: {tag}";
}
catch (Exception ex)
catch
{
different = false;
message = ex.ToString();
message = "An error occurred while checking for versions"; // ex.ToString();
url = null;
}
}