Skip to content

Commit

Permalink
add warning when final engine has feature deficit
Browse files Browse the repository at this point in the history
  • Loading branch information
mogery committed Nov 6, 2024
1 parent 7a54291 commit be40dcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/api/src/scraper/scrapeURL/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ async function scrapeURLLoop(

if (result.unsupportedFeatures.size > 0) {
const warning = `The engine used does not support the following features: ${[...result.unsupportedFeatures].join(", ")} -- your scrape may be partial.`;
meta.logger.warn(warning, { engine: result.engine, unsupportedFeatures: result.unsupportedFeatures });
document.warning = document.warning !== undefined ? document.warning + " " + warning : warning;
}

Expand Down

0 comments on commit be40dcb

Please sign in to comment.