Open trvrnrth opened 10 months ago
Include lists of errors as returned from some API endpoints (eg. configure an integration) in raised Bugsnag::Api::Error messages.
Bugsnag::Api::Error
Added secondary check for errors in order to maintain existing error message for possible compatibility reasons.
errors
Manually tested with:
Bugsnag::Api::Client.new Bugsnag::Api.get("projects/test/configured_integrations")
which raises:
Bugsnag::Api::Unauthorized: GET https://api.bugsnag.com/projects/test/configured_integrations: 401 - Errors: ["Authentication Required"]
Goal
Include lists of errors as returned from some API endpoints (eg. configure an integration) in raised
Bugsnag::Api::Error
messages.Design
Added secondary check for
errors
in order to maintain existing error message for possible compatibility reasons.Changeset
errors
Testing
Manually tested with:
which raises: