Skip to content

Commit

Permalink
Forgot to check for IndexOutOfRange exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
BradF-99 committed Jun 19, 2019
1 parent bfcf007 commit c57e026
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ public static void KillGTASocialClubProcess()
{
// process has already exited or doesn't exist
}
catch (IndexOutOfRangeException)
{
MessageBox.Show("A process could not be found. You can likely ignore this error.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
catch
{
MessageBox.Show("Something went wrong.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Expand Down

0 comments on commit c57e026

Please sign in to comment.