diff --git a/source/core/errors.ts b/source/core/errors.ts index cda0f7cc2..5d62bf536 100644 --- a/source/core/errors.ts +++ b/source/core/errors.ts @@ -96,7 +96,7 @@ export class HTTPError extends RequestError { declare readonly timings: Timings; constructor(response: PlainResponse) { - super(`Response code ${response.statusCode} (${response.statusMessage!})`, {}, response.request); + super(`Response code ${response.statusCode} (${response.statusMessage!}), Body: ${response.body}`, {}, response.request); this.name = 'HTTPError'; this.code = 'ERR_NON_2XX_3XX_RESPONSE'; } diff --git a/tsconfig.json b/tsconfig.json index 44fd86748..fbb08d571 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,5 +13,8 @@ "source", "test", "benchmark" + ], + "exclude": [ + "test/", ] }