diff --git a/packages/cc-github-releaser/src/got-wrapper.ts b/packages/cc-github-releaser/src/got-wrapper.ts index 6fd7bdc..a6309f1 100644 --- a/packages/cc-github-releaser/src/got-wrapper.ts +++ b/packages/cc-github-releaser/src/got-wrapper.ts @@ -39,9 +39,6 @@ const create: () => Got = () => 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';