Skip to content

repo-updater: Include body in GitHub errors if invalid JSON

Warren Gifford requested to merge core/better-github-error into master

Created by: keegancsmith

Previously if we fail to decode the user is presented with an empty error. The decode error would only be present in logs. Nowhere could one see the body of the response. This PR fixes both by including the body and decode error in the returned error.

Part of https://github.com/sourcegraph/sourcegraph/issues/6095

Merge request reports

Loading