Ignore another useless error

This commit is contained in:
Nuckyz 2024-08-23 19:10:06 -03:00
parent fae5f9bfab
commit 13ada86934
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -291,7 +291,7 @@ page.on("error", e => console.error("[Error]", e.message));
page.on("pageerror", e => {
if (e.message.includes("Sentry successfully disabled")) return;
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module")) {
if (!e.message.startsWith("Object") && !e.message.includes("Cannot find module") && !/^.{1,2}$/.test(e.message)) {
console.error("[Page Error]", e.message);
report.otherErrors.push(e.message);
} else {