500 error with oauth incorrect credentials
While trying to create a new github import with the github integration, I ran into a 500 due to resetting the integration token. It would be nice if this error was displayed in the UI and the exception caught:
Completed 500 Internal Server Error in 119ms (ActiveRecord: 1.4ms | Elasticsearch: 0.0ms) OAuth2::Error (incorrect_client_credentials: The client_id and/or client_secret passed are incorrect. error=incorrect_client_credentials&error_description=The+client_id+and%2For+client_secret+passed+are+incorrect.&error_uri=https%3A%2F%2Fdeveloper.github.com%2Fapps%2Fmanaging-oauth-apps%2Ftroubleshooting-oauth-app-access-token-request-errors%2F%23incorrect-client-credentials): lib/gitlab/legacy_github_import/client.rb:55:in `get_token' app/controllers/import/github_controller.rb:20:in `callback'
Steps to reproduce
Set up an oauth app such as github with incorrect credentials