Skip to content

Commit 821c9b7

Browse files
authored
Add logging full URL
1 parent 13c185d commit 821c9b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const get = (url, options = {}) => new Promise((resolve, reject) => https
1111
const body = Buffer.concat(chunks).toString('utf-8');
1212
if (res.statusCode < 200 || res.statusCode > 300) {
1313
return reject(Object.assign(
14-
new Error(`Invalid status code: ${res.statusCode}`),
14+
new Error(`Invalid status code '${res.statusCode}' for url '${url}'`),
1515
{ res, body }
1616
));
1717
}

0 commit comments

Comments
 (0)