Skip to content

Commit

Permalink
Update to Error handling improvement loading GUI config
Browse files Browse the repository at this point in the history
Remove Application.Exit() to allow the user to change connection.
  • Loading branch information
DavidWiseman committed Jul 11, 2024
1 parent 309dca9 commit 36e0c10
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions DBADashGUI/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ static Config()
catch (SqlException ex) when (ex.Number == 229)
{
MessageBox.Show(ex.Message + "\n\nThe App or AppReadOnly role can be used to grant access to the GUI", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}
catch (Exception ex)
{
MessageBox.Show("Error getting application settings\n" + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Application.Exit();
}
}

Expand Down

0 comments on commit 36e0c10

Please sign in to comment.