From 51922be4151e41963cbabd8511a786583607a4bf Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Fri, 30 Aug 2024 22:07:51 -0400 Subject: [PATCH] Fix? --- scripts/generateReport.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/generateReport.ts b/scripts/generateReport.ts index 48c0b0b0..6d00bf45 100644 --- a/scripts/generateReport.ts +++ b/scripts/generateReport.ts @@ -289,7 +289,10 @@ page.on("console", async e => { } }); -page.on("error", e => console.error("[Error]", e.message)); +page.on("error", e => { + if (e.message.includes("the network is offline")) return; + console.error("[Error]", e.message); +}); page.on("pageerror", e => { if (e.message.includes("Sentry successfully disabled")) return;