Skip to content

Commit

Permalink
Output referrer when there is a crawl error - resolves #126 (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
exortech authored Dec 31, 2022
1 parent 49f3054 commit 5a3000b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-horses-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'lighthouse-parade': patch
---

Output referrer when there is a crawl error
2 changes: 1 addition & 1 deletion src/crawl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function crawl(
console.warn(
`${kleur.yellow('⚠')} Error fetching (${response.statusCode}): ${
queueItem.url
}`
} - referrer: ${queueItem.referrer}`
);
};
crawler.on('fetcherror', logWarning);
Expand Down

0 comments on commit 5a3000b

Please sign in to comment.