Remove Extra Report Error

This commit is contained in:
thororen1234 2025-02-09 23:43:19 -05:00
parent 5f96c2fd73
commit 09567cf6f9

View file

@ -327,7 +327,6 @@ page.on("console", async e => {
page.on("error", e => logStderr("[Error]", e.message)); page.on("error", e => logStderr("[Error]", e.message));
page.on("pageerror", e => { page.on("pageerror", e => {
if (e.message.includes("Sentry successfully disabled")) return; if (e.message.includes("Sentry successfully disabled")) return;
if (e.message.includes("the network is offline")) return;
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module") && !/^.{1,2}$/.test(e.message)) { if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module") && !/^.{1,2}$/.test(e.message)) {
logStderr("[Page Error]", e.message); logStderr("[Page Error]", e.message);