Skip to content

Commit

Permalink
fix: api error output
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael M committed Feb 19, 2022
1 parent e1102ed commit 0f8e99e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/cc-github-releaser/src/got-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ const create: () => Got = <T = unknown>() =>
if (response?.body) {
error.body = response.body;
}
if (error.code === 'ERR_NON_2XX_3XX_RESPONSE') {
return error;
}
// Nicer errors
if (response?.body) {
error.name = 'GitHubError';
Expand Down

0 comments on commit 0f8e99e

Please sign in to comment.