Fix blank errors on plugin reports (#1021)

main
Nuckyz 2 years ago committed by GitHub
parent c6196dff81
commit 6a1cb133cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -194,9 +194,10 @@ page.on("console", async e => {
return a.toString(); return a.toString();
} }
}) })
).then(a => a.join(" ")); ).then(a => a.join(" ").trim());
if (!text.startsWith("Failed to load resource: the server responded with a status of")) {
if (text.length && !text.startsWith("Failed to load resource: the server responded with a status of")) {
console.error("Got unexpected error", text); console.error("Got unexpected error", text);
report.otherErrors.push(text); report.otherErrors.push(text);
} }

Loading…
Cancel
Save