mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
add warning when final engine has feature deficit
This commit is contained in:
parent
7a54291d12
commit
be40dcb217
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user