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; } }