Skip to content

Commit 8e862f1

Browse files
authored
Improve logging
1 parent ea73d10 commit 8e862f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function getContent(url) {
88
const request = lib.get(url, response => {
99
// handle http errors
1010
if (response.statusCode < 200 || response.statusCode > 299) {
11-
reject(new Error('Failed to load page, status code: ' + response.statusCode));
11+
reject(new Error('Failed to load page, status code: ' + response.statusCode + '; Url: ' + url));
1212
}
1313
// temporary data holder
1414
const body = [];

0 commit comments

Comments
 (0)