From 4d342344452e68ef3cc3daaa5d8cb56b3c573f59 Mon Sep 17 00:00:00 2001 From: Dhananjay Agrawal Date: Fri, 28 Oct 2022 11:03:56 -0400 Subject: [PATCH] (1138) - Fixed HTTPResponseError with correct constructor and usage --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2c1169711..d62c9c64d 100644 --- a/README.md +++ b/README.md @@ -269,8 +269,8 @@ It is common to create a helper function to check that the response contains no import fetch from 'node-fetch'; class HTTPResponseError extends Error { - constructor(response, ...args) { - super(`HTTP Error Response: ${response.status} ${response.statusText}`, ...args); + constructor(response) { + super(`HTTP Error Response: ${response.status} ${response.statusText}`); this.response = response; } }