Skip to content

Commit

Permalink
Help: add exception check around update checks
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Mar 22, 2016
1 parent 102f367 commit 8d34e5a
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions GCSViews/Help.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,14 @@ public void Activate()

public void BUT_updatecheck_Click(object sender, EventArgs e)
{
Utilities.Update.CheckForUpdate(true);
try
{
Utilities.Update.CheckForUpdate(true);
}
catch (Exception ex)
{
CustomMessageBox.Show(ex.ToString(), Strings.ERROR);
}
}

private void CHK_showconsole_CheckedChanged(object sender, EventArgs e)
Expand Down Expand Up @@ -56,8 +63,15 @@ private void PIC_wizard_Click(object sender, EventArgs e)

private void BUT_betaupdate_Click(object sender, EventArgs e)
{
Utilities.Update.dobeta = true;
Utilities.Update.DoUpdate();
try
{
Utilities.Update.dobeta = true;
Utilities.Update.DoUpdate();
}
catch (Exception ex)
{
CustomMessageBox.Show(ex.ToString(), Strings.ERROR);
}
}
}
}

0 comments on commit 8d34e5a

Please sign in to comment.