We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13c185d commit 821c9b7Copy full SHA for 821c9b7
start.js
@@ -11,7 +11,7 @@ const get = (url, options = {}) => new Promise((resolve, reject) => https
11
const body = Buffer.concat(chunks).toString('utf-8');
12
if (res.statusCode < 200 || res.statusCode > 300) {
13
return reject(Object.assign(
14
- new Error(`Invalid status code: ${res.statusCode}`),
+ new Error(`Invalid status code '${res.statusCode}' for url '${url}'`),
15
{ res, body }
16
));
17
}
0 commit comments