0

Update single_url.ts

This commit is contained in:
Nicolas 2024-06-10 16:57:31 -07:00
parent 913c1dd568
commit 7ae9778642

View File

@ -96,7 +96,11 @@ export async function scrapWithFireEngine(
return { html: html ?? "", screenshot: screenshot ?? "" };
}
} catch (error) {
if (error.code === 'ECONNABORTED') {
console.log(`[Fire-Engine] Request timed out for ${url}`);
} else {
console.error(`[Fire-Engine][c] Error fetching url: ${url} -> ${error}`);
}
return { html: "", screenshot: "" };
}
}