Skip to content

Commit 3a36392

Browse files
Kade-NRosalie241
authored andcommitted
ModApi.UpdateManager: improve error messages
1 parent 607ab4b commit 3a36392

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ModApi.UpdateManager/UpdateManager.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ public static void CheckForUpdates()
148148
{
149149
if (Version.Parse(updateInfoLines[1]) > CurrentVersion)
150150
{
151-
if (MessageBox.Show("An update to the Spore ModAPI Launcher Kit is now available. Would you like to install it now?", "Update Available", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
151+
string versionString = "Current version: " + CurrentVersion + "\nNew version: " + updateInfoLines[1];
152+
153+
if (MessageBox.Show("An update to the Spore ModAPI Launcher Kit is now available. Would you like to install it now?\n\n" + versionString, "Update Available", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
152154
{
153155
if (bool.Parse(updateInfoLines[2]))
154156
{
@@ -228,7 +230,7 @@ public static void CheckForUpdates()
228230

229231
static void ShowUpdateCheckFailedMessage(Exception ex)
230232
{
231-
MessageBox.Show("Update Check Failed. This may be due to the update service being down, or due to lack of a working internet connection.\n\n" + ex.ToString());
233+
MessageBox.Show("The Launcher Kit could not connect to the update service. Try again in a few minutes, or check https://launcherkit.sporecommunity.com/support for help.\n\nCurrent version: "+ CurrentVersion + "\n\n" + ex.ToString());
232234
}
233235

234236
static void ShowUnrecognizedUpdateInfoVersionMessage()

0 commit comments

Comments
 (0)